ZIP Adapter Reference
ZIP Adapter Parameters
Action "zip"
Name | Type | Direction | Description | Allowed Values | |
---|---|---|---|---|---|
zipFile | String | in | Specify name and path of the target ZIP file. | any string | |
files | Array of String | in | Specify a list of files and/or directories to be zipped relative to a base directory (see baseDirectory below). The files to be zipped are calculated by the base directory and the file specifications that may be with or without path information (relative or absolute).
| a list of valid files/directories | |
baseDirectory | String | in | Specify an base directory for the list of files to be zipped (optional). This part of the file path will not be stored to the ZIP file. | a valid directory | |
parameter provided | All files need to be provided with path information (relative or absolute). This path information will be stored to the ZIP file. | ||||
parameter not provided | All files should be provided | ||||
password | String | in | Specify a password to protect the ZIP file with (optional). | any string | |
encryption | String | in | Specify an encryption method if you want to encrypt the ZIP file (optional). | traditional | Alias for zipcrypt. Encrypt target ZIP file with zipcrypt. |
zipcrypt | Encrypt target ZIP file with zipcrypt (default). | ||||
aes128 | Encrypt target ZIP file with aes128. | ||||
aes256 | Encrypt target ZIP file with aes256. |
Action "unzip"
Name | Type | Direction | Description | Allowed Values | |
---|---|---|---|---|---|
zipFile | String | in | Specify name and path of the source ZIP file. | a valid ZIP file name | |
overwrite | Boolean | in | Specify if the extracted files should overwrite already existing files with the same name. if true, then extracted files are overwritten if they are already there. Otherwise (this is the default), the adapter will extract all files, which are not already there and will return an exception. | true | Extract all files, and overwrite already existing ones. |
false |
| ||||
baseDirectory | String | in | Specify an base directory for the files to be extracted to. Where the files will be extracted to depends on the base directory and the file paths stored in the ZIP file.
| a valid directory | |
password | String | in | Specify a password to access the file if the ZIP file is protected. | a valid password | |
extractedFiles | Array of String | out | Returns a list of all extracted files. |
Related Pages: