File Manipulation - Compress Files
Overview
Compress one or multiples files into a single archive using ZIP, TAR, TAR.GZIP, or TAR.BZ2 compression methods.
The match type selected greatly affects how this Template works.
Variables
Name | Reference | Type | Required | Default | Options | Description |
---|---|---|---|---|---|---|
Compression Type | MANIPULATION_COMPRESSION_TYPE | Select | ✅ |
| .zip: .tar: .tar.bz2: .tar.gz: | Type of compression to use on the provided files. |
Local Folder Name | MANIPULATION_SOURCE_FOLDER_NAME | Alphanumeric | ➖ | - | - | Name of the local folder on Platform where the target file lives. If left blank, will look in the home directory. |
Local File Name Match Type | MANIPULATION_SOURCE_FILE_NAME_MATCH_TYPE | Select | ✅ |
| Exact Match: Regex Match: | Determines if the text in "Local File Name" will look for one file with exact match, or multiple files using regex. |
Local File Name | MANIPULATION_SOURCE_FILE_NAME | Alphanumeric | ✅ | - | - | Name of the target file on Platform. Can be regex if "Match Type" is set accordingly. |
New Folder Name | MANIPULATION_DESTINATION_FOLDER_NAME | Alphanumeric | ➖ | - | - | Folder where the newly compressed file should be created on Platform. Leaving blank will place the file in the home directory. If the folder does not already exist, it will be created. |
New File Name | MANIPULATION_DESTINATION_FILE_NAME | Alphanumeric | ✅ |
| - | What to name the newly compressed file on Platform. It is recommended to end this name with the same extension as the compression type chosen. |