From 8e11522b2a273d5651968e54a644e4648762ef79 Mon Sep 17 00:00:00 2001 From: licsber Date: Sun, 8 Sep 2024 12:27:42 +0800 Subject: [PATCH] skip if already exists. --- src/main.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main.rs b/src/main.rs index 8dd6bd6..f2fd11f 100644 --- a/src/main.rs +++ b/src/main.rs @@ -10,6 +10,8 @@ fn unar_file(path: &Path) -> io::Result<()> { let filename = path.file_name().unwrap(); let output = Command::new("unar") .current_dir(parent_dir) + .arg("-s") + .arg("-d") .arg(filename) .output();