Compare commits
2 Commits
77a7b7679a
...
16d2371ab6
Author | SHA1 | Date | |
---|---|---|---|
16d2371ab6 | |||
67362384ba |
2
Cargo.lock
generated
2
Cargo.lock
generated
@ -4,4 +4,4 @@ version = 3
|
||||
|
||||
[[package]]
|
||||
name = "unzip-all"
|
||||
version = "0.2.1"
|
||||
version = "0.2.2"
|
||||
|
@ -1,10 +1,10 @@
|
||||
[package]
|
||||
name = "unzip-all"
|
||||
version = "0.2.1"
|
||||
version = "0.2.2"
|
||||
authors = ["licsber <admin@licsber.site>"]
|
||||
edition = "2021"
|
||||
|
||||
description = "unzip all file using unar."
|
||||
description = "Decompress all file recursively using unar."
|
||||
repository = "https://git.licsber.site/rust/unzip-all"
|
||||
homepage = "https://blog.licsber.site"
|
||||
readme = "README.md"
|
||||
|
@ -1,8 +1,8 @@
|
||||
# unzip-all
|
||||
|
||||
unzip all compressed file using unar.
|
||||
Decompress all file recursively using unar.
|
||||
|
||||
first time write rust executable program~
|
||||
My first time write rust executable program~
|
||||
|
||||
## Reference
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
use std::io;
|
||||
use std::path::Path;
|
||||
use std::process::{Command, Stdio};
|
||||
use std::process::Command;
|
||||
|
||||
pub fn unar_file(path: &Path) -> io::Result<()> {
|
||||
println!("UNAR: {}", path.display());
|
||||
@ -16,8 +16,6 @@ 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 {
|
||||
|
Loading…
Reference in New Issue
Block a user