diff --git a/src/config/job.rs b/src/config/job.rs index 6dcb505..3704cba 100644 --- a/src/config/job.rs +++ b/src/config/job.rs @@ -86,6 +86,7 @@ impl Job { match std::fs::rename(&f, &file_path) { Err(ref e) if cfg!(windows) && e.raw_os_error() == Some(17) => { std::fs::copy(&f, &file_path)?; + std::fs::remove_file(&f)?; }, _ => {}, }