Crates.io | zip-extract |
lib.rs | zip-extract |
version | 0.2.1 |
source | src |
created_at | 2020-06-22 19:27:54.876421 |
updated_at | 2024-08-26 09:23:49.535057 |
description | Archive extraction via zip-rs, automated. |
homepage | |
repository | https://github.com/MCOfficer/zip-extract |
max_upload_size | |
id | 256833 |
size | 198,304 |
zip-extract's primary goal is simple: Automate tedious zip extraction. Ever wanted to just unpack an archive somewhere? Well, here you go.
let archive: Vec<u8> = download_my_archive()?;
let target_dir = PathBuf::from("my_target_dir"); // Doesn't need to exist
// The third parameter allows you to strip away toplevel directories.
// If `archive` contained a single directory, its contents would be extracted instead.
zip_extract::extract(Cursor::new(archive), &target_dir, true)?;
All features passed through to zip2
.