pub fn write_secret_export(
path: &Path,
bytes: &[u8],
force: bool,
) -> Result<(), Box<dyn Error>>Expand description
Write a secret-bearing export (such as a backup envelope) to path, owner
read/write only.
Wraps write_secret_file, so an existing file is never silently
truncated. With force, an existing file at path is removed first and a
new one created in its place; without it, an existing file is an error
that names --force.