zip-extract

Crates.iozip-extract
lib.rszip-extract
version0.2.1
sourcesrc
created_at2020-06-22 19:27:54.876421
updated_at2024-08-26 09:23:49.535057
descriptionArchive extraction via zip-rs, automated.
homepage
repositoryhttps://github.com/MCOfficer/zip-extract
max_upload_size
id256833
size198,304
M*C*O (MCOfficer)

documentation

README

zip-extract

CI Crates.io Docs.rs

zip-extract's primary goal is simple: Automate tedious zip extraction. Ever wanted to just unpack an archive somewhere? Well, here you go.

Usage

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)?;

Features

All features passed through to zip2.

Commit count: 18

cargo fmt