Function decompress_file_with_extract_fn

Source
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 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 file
  • dest - Path to the destination directory where files will be extracted
  • extract_fn - Custom function to handle each archive entry during extraction