ZIP Compress
ZIP Compress
Section titled “ZIP Compress”Type: zip-compress · Package: ZIP Activities v1.0.0 · Output: string
Compresses an entire folder or a list of files into a ZIP file. Returns the path of the created ZIP.
How it works
Section titled “How it works”Indicates the destination (destination) and one of the two sources: sourceFolder (compresses all its contents) or files (a list of specific routes). By default it overwrites the ZIP if it already exists.
Required parameters
Section titled “Required parameters”| Parameter | Editor | Description |
|---|---|---|
destination | expression | Path of the output ZIP file. |
Optional parameters
Section titled “Optional parameters”| Parameter | Editor | Description |
|---|---|---|
sourceFolder | expression | Folder to compress (all its contents). |
files | expression | List of file paths to compress (alternative to sourceFolder). |
overwrite | boolean | Overwrite the destination if it exists. By default true. |
Output
Section titled “Output”Returns a string with the path of the created ZIP.
Examples
Section titled “Examples”Compress a folder:
ZIP Compress destination = "C:/envios/documentos.zip" sourceFolder = "C:/salida/documentos"Comprimir archivos concretos:
List Files path = "C:/facturas" pattern = "*.pdf" → output: pdfsZIP Compress destination = "C:/envios/facturas.zip" files = = pdfsRelated activities
Section titled “Related activities”- ZIP Extract — the reverse operation.
- ZIP Add File — add to an existing ZIP.
- SMTP Send — send the ZIP by mail.