Skip to main content

atomic_write

Function atomic_write 

Source
pub fn atomic_write(path: &Path, data: &[u8]) -> Result<(), Error>
Expand description

Write data to a file atomically using a temp file + rename. On failure, falls back to a direct write.