ZIP Adapter
The ZIP adapter (<<ZIPAdapter>>) enables to zip and unzip files and directories.
Example File (Builder project Add-ons/ZIP):
<your example path>\Add-ons\ZIP\uml\zip.xml |
The ZIP adapter takes the following parameter to zip a list of files into a ZIP file:
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). | 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. |
The ZIP adapter uses the following parameters to unzip a ZIP file:
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. | 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: