Zip Files
This task will Zip a collection of files and create an industry standard Zip file.
Settings
Compression Level
Required
Select a compression level from 1 to 9. Higher is better, defaults to the highest setting.
Password
Optional
If you would to encrypt the Zip file, enter a password to encrypt it with here.
Input Files and Directories
Required
The list of files and/or directories to include in the Zip. There are different ways to provide this, depending on the data type selected:
- List - Allows you to provide a list of files and/or directories to zip.
- File - Allows you to provide a single file to add to the zip.
- Folder, HTTP or FTP location - Allows you to provide a single directory to add to the zip. All sub-directories and files within the directory specified will be added to the zip.
- Output from the previous task - Use in conjunction with the List Files task to dynamically build a list of files to zip.
Output File
Required
Name of the Zip file to create.
Root Directory
Optional
Specify a directory to act as the root for the zip file. When specified, all input files and directories specified via the Input Files and Directories setting will be made relative to this directory before being added to the zip. For example, if the root directory is set to C:\ZipRoot
, and the file C:\ZipRoot\Subfolder\orders.xml
is provided as an input file, it would appear as \Subfolder\orders.xml
within the zip. If a file or directory provided as an input doesn't reside within the root directory, it will be placed directly into the root of the zip. For example, if the root directory is set to C:\ZipRoot
, and the file C:\OtherFolder\Subfolder\customers.xml
is provided as an input file, it would appear as \customers.xml
within the zip.
If a root directory is not specified, all files and directories specified via the Input Files and Directories setting will be placed directly in the root of the zip. For example, if the file C:\ZipRoot\Subfolder\orders.xml
is provided as an input file, it would appear as \orders.xml
within the zip.
Prepend Timestamp
Required
Set to true to add a timestamp to the start of filename. For example, if this setting is enabled and the Output File setting is set to output.zip
, the filename might look like 202002141200000000_output.zip
, depending on how the Timestamp Format is configured.
Timestamp Format
Required
The format to use for the timestamp (e.g. dd-MM-yy_HH-mm-ss-ffff
). The default is yyyyMMddHHmmssffff
.