pub fn zip_directory(dir: &Path, output_path: &Path) -> Result<usize, ZigError>Expand description
Zip every file under dir into a new archive at output_path.
Preserves directory structure relative to dir. Returns the number of
files written. Used by pack and by update::run_update to re-zip
a staging directory after an interactive edit session.