From 9441a9d9fbada8dc95eb4292a38570ec56081a04 Mon Sep 17 00:00:00 2001 From: TheGeneralist <180094941+thegeneralist01@users.noreply.github.com> Date: Tue, 31 Mar 2026 12:49:44 +0200 Subject: [PATCH] fix: use remove_dir_all for removal of temp directories Signed-off-by: TheGeneralist <180094941+thegeneralist01@users.noreply.github.com> --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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."); }