Skip to main content

write_atomic

Function write_atomic 

Source
pub fn write_atomic(path: &Path, content: &str) -> Result<(), Error>
Expand description

Write a file through a temporary neighbour and a rename, so that a reader never sees half a file.