added support for gz
This commit is contained in:
parent
17ea4f951c
commit
5e152b4a1b
4 changed files with 47 additions and 25 deletions
|
|
@ -23,7 +23,7 @@ use extractors::{
|
|||
// extract_tgz,
|
||||
// extract_txz,
|
||||
// extract_lzma,
|
||||
// extract_gz,
|
||||
extract_gz,
|
||||
// extract_z,
|
||||
// extract_7z,
|
||||
// extract_arj,
|
||||
|
|
@ -81,13 +81,14 @@ fn run() -> i32 {
|
|||
return 1;
|
||||
}
|
||||
}
|
||||
/*
|
||||
"gz" => {
|
||||
if let Err(err) = extract_gz(&fname) {
|
||||
let output_directory = Path::new("output_directory"); // Change this to your desired output directory
|
||||
if let Err(err) = extract_gz(&fname, &output_directory) {
|
||||
println!("Error extracting GZ: {}", err);
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
/*
|
||||
"bz2" => {
|
||||
if let Err(err) = extract_bz2(&fname) {
|
||||
println!("Error extracting BZ2: {}", err);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue