diff --git a/src/main.rs b/src/main.rs index db9004a..c4d8403 100644 --- a/src/main.rs +++ b/src/main.rs @@ -350,7 +350,7 @@ fn main() -> Result<()> { // Dir or whatever. it's midnight and my brain ain't wording/braining. if hash_exists { println!("File already archived."); - let _ = fs::remove_file(store_path.join("temp").join(×tamp)); + let _ = fs::remove_dir_all(store_path.join("temp").join(×tamp)); } else { move_temp_to_raw( &store_path @@ -360,7 +360,7 @@ fn main() -> Result<()> { &hash, &store_path, )?; - let _ = fs::remove_file(store_path.join("temp").join(×tamp)); + let _ = fs::remove_dir_all(store_path.join("temp").join(×tamp)); println!("File archived successfully."); }