Skip to main content

replace_atomically

Function replace_atomically 

Source
fn replace_atomically(
    staging: &Path,
    destination: &Path,
    backup: &Path,
) -> Result<(), String>
Expand description

Moves staging to destination, keeping the old folder in backup and restoring it if the move fails.