pub fn write(path: &Path, key: &MasterKey) -> Result<()>Expand description
Writes key to path, creating parent directories.
The file is owner-only before any key material reaches it: on Unix the
replacement is created with mode 0600 and renamed into place, so neither a
fresh file nor one that already existed with looser permissions has a moment
in which the key is world readable.
ยงErrors
Error::Io when the directory or the file cannot be created.