Skip to main content

atomic_write

Function atomic_write 

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

Atomically write UTF-8 content to path (temp file + rename).

See the module docs for the temp-name rationale (UUID suffix).