Function larz::extract_archive_streaming
source · pub fn extract_archive_streaming(paths: Vec<PathBuf>, output_path: PathBuf)
Expand description
Extract & decompress an existing archive
§Arguments
-
paths
- A list of paths pointing tolarz
archives -
output_path
- Path to write the extracted files to
§Panics
This function will panic if any of the input paths are invalid or cannot be read, or if the output path is invalid or cannot be written to.
§Examples
use larz::extract_archive_streaming;
use std::path::PathBuf;
let paths = vec![PathBuf::from("path/to/archive.larz")];
let output_path = PathBuf::from("path/to/output");
extract_archive_streaming(paths, output_path);