Skip to main content

atomic_write

Function atomic_write 

Source
pub fn atomic_write(
    destination: &Path,
    contents: &str,
) -> Result<(), CloudflareError>
Expand description

Atomic write helper - write to a sibling temp file, then rename over the destination. Never leave a half-written catalog behind.