From 1a2cdf2c2f7907b175ec8618845db5f4bf21beb1 Mon Sep 17 00:00:00 2001 From: Anna Date: Mon, 13 Aug 2018 19:51:24 -0400 Subject: [PATCH] fix: remove file after copy --- src/config/job.rs | 1 + 1 file changed, 1 insertion(+) 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)?; }, _ => {}, }