fn atomic_write(path: &Path, content: &[u8], mode: u32) -> Result<()>
Replaces a file through a same-directory durable temporary file.