Skip to main content

write_atomic

Function write_atomic 

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

Writes text to file atomically: a temporary file in the same directory, then a rename over the old file.