pub async fn decompress_with_extract_fn<R: AsyncRead + AsyncSeek + Unpin + Send>(
src_reader: R,
dest: impl AsRef<Path>,
extract_fn: impl for<'a> FnMut(&'a ArchiveEntry, &'a mut (dyn AsyncRead + Unpin + Send + 'a), &'a Path) -> Pin<Box<dyn Future<Output = Result<bool, Error>> + Send + 'a>> + 'static + Send,
) -> Result<(), Error>Available on non-WebAssembly only.
Expand description
Decompresses an archive from a reader to a destination directory with a custom extraction function.
This provides the most flexibility, allowing both custom input sources and custom extraction logic.
ยงArguments
src_reader- Reader containing the archive datadest- Path to the destination directory where files will be extractedextract_fn- Custom function to handle each archive entry during extraction