Skip to main content

replace_file

Function replace_file 

Source
pub fn replace_file(from: &Path, to: &Path) -> Result<()>
Expand description

Renames from over to. On Windows a sharing violation is retried briefly; elsewhere this is a plain rename, which is already atomic.