Skip to main content

rename_with_retry

Function rename_with_retry 

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

fs::rename, retried briefly when Windows refuses to replace a file another process holds open; never falls back to a non-atomic write.