sassy_zip
Creates a zip archive from a file or directory, supporting deflated, stored, bzip2, or lzma compression. Returns file count, sizes, compression ratio, and flags sensitive files while creating the archive.
Instructions
Mutating: writes a new zip archive to disk. Creates a zip from a file or directory in source; directories are walked recursively and files are stored with paths relative to the source root, while a single file is stored under its basename. compression (default deflated) accepts deflated, stored, bzip2, or lzma, and unrecognized values fall back to deflated. output defaults to source plus .zip, replacing the extension for files. Sensitive members are not blocked (full-directory backups must keep working): if any archived file matches the sensitive-read denylist (SSH keys, credential stores, ...), the archive is still created but the result carries a 'warning' field listing them and the event is audit-logged. Returns the created path, file count, original and zip byte sizes, and a compression ratio percentage. Use it to package files for sharing; use sassy_unzip to extract what it creates.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| output | No | ||
| source | Yes | ||
| compression | No | deflated |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||