Skip to main content

write_atomically

Function write_atomically 

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

A file written whole beside its place under a hidden name, yours alone (new_private), then renamed over it: never half a file, and its folders made yours alone (private_dirs).