Skip to main content

write_atomic_0600

Function write_atomic_0600 

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

Atomic write, mode 0600 on unix: a private temp file in the same directory, fsynced, then renamed over path.