updated version in Cargo.toml

This commit is contained in:
specCon18 2023-09-21 05:12:21 -04:00
parent de0fcd5182
commit 1fc53d2ffb
2 changed files with 2 additions and 1 deletions

View file

@ -1,6 +1,6 @@
[package] [package]
name = "sk_extract" name = "sk_extract"
version = "0.1.0" version = "0.9.0"
edition = "2021" edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

View file

@ -44,6 +44,7 @@ fn run() -> i32 {
if let Some(extension) = fname.extension().and_then(|s| s.to_str()) { if let Some(extension) = fname.extension().and_then(|s| s.to_str()) {
match extension { match extension {
"zip" => { "zip" => {
//Extract Files from a ZIP archive
let output_directory = Path::new("output_directory"); // Change this to your desired output directory let output_directory = Path::new("output_directory"); // Change this to your desired output directory
if let Err(err) = fs::create_dir_all(&output_directory) { if let Err(err) = fs::create_dir_all(&output_directory) {
println!("Error creating output directory: {}", err); println!("Error creating output directory: {}", err);