pub fn compress_to_path(
src: impl AsRef<Path>,
dest: impl AsRef<Path>,
) -> Result<(), Error>Available on crate feature
compress and crate feature util and non-WebAssembly only.Expand description
Compresses a source file or directory to a destination file path.
This is a convenience function that handles file creation automatically.
ยงArguments
src- Path to the source file or directory to compressdest- Path where the compressed archive will be created