Skip to main content

replace_file

Function replace_file 

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

Replace path with tmp_path (tmp is consumed). Works on Windows where rename cannot overwrite an existing destination.