Skip to main content

extract

Function extract 

Source
pub fn extract(
    zip_bytes: &[u8],
    dest_dir: &Path,
) -> Result<Vec<String>, ZipError>
Expand description

Extracts into dest_dir, overwriting existing files as the legacy installer did, and returns the files written in the form entry_paths reports them.

Every name is validated before anything is written, so a hostile entry leaves the target untouched.