pub fn write_export_file(output: &Path, bytes: &[u8]) -> Result<()>
Writes a portable export as an owner-only file, atomically replacing an existing regular file while refusing any other existing file type.