pub fn zip_directory_listen<P: AsRef<Path>, F: FnMut(&str)>(
src_dir: P,
dst_file: P,
comp_opts: CompressionOptions,
listener: F,
) -> ZipResult<()>
Expand description
Compresses directory as a ZIP archive
Recursively compresses specified directory as a ZIP archive. Listener is called for each entry added to archive.
ยงArguments
src_dir
- Path to directory to compressdst_file
- Path to resulting ZIP filecomp_opts
- Compression method and levellistener
- Function that is called for each entry added to archive