Action File System
Compress Files
Compresses files and directories into an archive. Supports ZIP and TAR.GZ formats.
Node IDCompressFilesAction
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
Source Paths sourcePaths | array_string | Yes | — | List of file or directory paths to compress. Can include multiple files and folders. |
Output Archive Path outputPath | file_picker | Yes | — | The full path to the output archive file (e.g., "output.zip" or "output.tar.gz"). |
Archive Format format | enum | Yes | zip | The compression format to use. |
Compression Level compressionLevel | integer min 0 , max 9 | No | 6 | Compression level (0=none, 9=maximum). Higher levels are slower but produce smaller files. |
Overwrite Existing overwrite | boolean | No | false | If true, overwrites an existing archive at the output path. |
Inputs
| Input | Type | Required | Description |
|---|---|---|---|
Execute input0 | object | Yes | Triggers the compression operation. |
Outputs
| Output | Type | Identifier | Description |
|---|---|---|---|
On Success output0 | object | archive_path | Fires on success and contains the output archive path and file count. |