Function larz::extract_archive_memory

source ·
pub fn extract_archive_memory(paths: Vec<PathBuf>, output_path: PathBuf)
Expand description

Extract & decompress an existing archive, in memory

§Arguments

  • paths - A list of paths pointing to larz 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_memory;
use std::path::PathBuf;

let paths = vec![PathBuf::from("path/to/archive.larz")];
let output_path = PathBuf::from("path/to/output");

extract_archive_memory(paths, output_path);