Function compress_to_path

Source
pub fn compress_to_path(
    src: impl AsRef<Path>,
    dest: impl AsRef<Path>,
) -> Result<(), Error>
Available on crate features compress and util 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 compress
  • dest - Path where the compressed archive will be created