Skip to main content

write_atomically

Function write_atomically 

Source
pub fn write_atomically(path: &Path, text: &str) -> Result<()>
Expand description

Write a file so that nobody ever reads half of it: write beside it, then rename over it.