Skip to content

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.

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.

ParameterEditorDescription
destinationexpressionPath of the output ZIP file.
ParameterEditorDescription
sourceFolderexpressionFolder to compress (all its contents).
filesexpressionList of file paths to compress (alternative to sourceFolder).
overwritebooleanOverwrite the destination if it exists. By default true.

Returns a string with the path of the created ZIP.

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: pdfs
ZIP Compress destination = "C:/envios/facturas.zip" files = = pdfs