fix: remove file after copy

This commit is contained in:
Anna 2018-08-13 19:51:24 -04:00
parent c7f94a6e22
commit 1a2cdf2c2f
1 changed files with 1 additions and 0 deletions

View File

@ -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)?;
},
_ => {},
}