pub fn decompress_file_with_extract_fn(
src_path: impl AsRef<Path>,
dest: impl AsRef<Path>,
extract_fn: impl FnMut(&ArchiveEntry, &mut dyn Read, &PathBuf) -> Result<bool, Error>,
) -> Result<(), Error>Available on crate feature
util and non-WebAssembly only.Expand description
Decompresses an archive file to a destination directory with a custom extraction function.
The extraction function is called for each entry in the archive, allowing custom handling of individual files and directories during extraction.
ยงArguments
src_path- Path to the source archive filedest- Path to the destination directory where files will be extractedextract_fn- Custom function to handle each archive entry during extraction