mirror of
https://github.com/nivekuil/rip
synced 2024-11-10 06:04:17 +00:00
Don't panic if nothing to clean up
This commit is contained in:
parent
6292d01c8e
commit
af21d1c4ca
1 changed files with 1 additions and 1 deletions
|
@ -225,7 +225,7 @@ Send files to the graveyard (/tmp/.graveyard) instead of unlinking them.")
|
|||
if let Err(e) = bury(source, dest) {
|
||||
println!("ERROR: {}: {}", e, target);
|
||||
// Clean up any partial buries due to permission error
|
||||
fs::remove_dir_all(dest).expect("Failed to clean up");
|
||||
fs::remove_dir_all(dest).is_ok();
|
||||
} else if let Err(e) = write_log(source, dest, record) {
|
||||
println!("Error adding {} to record: {}", target, e);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue