fix: remove file after copy
This commit is contained in:
parent
c7f94a6e22
commit
1a2cdf2c2f
|
@ -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)?;
|
||||
},
|
||||
_ => {},
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue