Skip to main content

write_atomic

Function write_atomic 

Source
pub fn write_atomic(path: &Path, body: &[u8]) -> Result<()>
Expand description

Atomic, durable, owner-only replace (rightkit_fs::atomic_write_private: unique temp file in the same directory, fsync, rename, directory fsync). The parent directory must exist.