Compare commits

..

No commits in common. "16d2371ab623846a23fde1ecfaafe09378b98e96" and "77a7b7679a2f2048869717e338fb2aba0339016d" have entirely different histories.

4 changed files with 8 additions and 6 deletions

2
Cargo.lock generated
View File

@ -4,4 +4,4 @@ version = 3
[[package]]
name = "unzip-all"
version = "0.2.2"
version = "0.2.1"

View File

@ -1,10 +1,10 @@
[package]
name = "unzip-all"
version = "0.2.2"
version = "0.2.1"
authors = ["licsber <admin@licsber.site>"]
edition = "2021"
description = "Decompress all file recursively using unar."
description = "unzip all file using unar."
repository = "https://git.licsber.site/rust/unzip-all"
homepage = "https://blog.licsber.site"
readme = "README.md"

View File

@ -1,8 +1,8 @@
# unzip-all
Decompress all file recursively using unar.
unzip all compressed file using unar.
My first time write rust executable program~
first time write rust executable program~
## Reference

View File

@ -1,6 +1,6 @@
use std::io;
use std::path::Path;
use std::process::Command;
use std::process::{Command, Stdio};
pub fn unar_file(path: &Path) -> io::Result<()> {
println!("UNAR: {}", path.display());
@ -16,6 +16,8 @@ pub fn unar_file(path: &Path) -> io::Result<()> {
.current_dir(parent_dir)
.arg("-s") // -force-skip: skip if exists
.arg(filename)
.stdout(Stdio::inherit())
.stderr(Stdio::inherit())
.spawn()?.wait_with_output();
match output {