pub fn write_atomic(path: &Path, bytes: &[u8]) -> Result<()>
Write bytes to path via <path>.tmp: 0600, fsync, rename.
bytes
path
<path>.tmp