skip if already exists.

This commit is contained in:
licsber 2024-09-08 12:27:42 +08:00
parent ac182765e2
commit 8e11522b2a

View File

@ -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();