Skip to main content

write_text_atomic

Function write_text_atomic 

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

Write to a temp file in the same directory, then rename for atomicity.