Skip to main content

Unzip File

Description

Unzip file is a step in the File Management Plugin that unzipped a file or folder. Note: The Unzip file step must be preceded by at least one step that will generate row(s).

Configurations

No.Field NameDescription
1Step nameSpecify a unique name for the step.
General tab
2Source filesYou can specify the list of source (zip) files in this section. Get args from previous: check this option if you want to use the list of result files (from a previous step) as the list of files to unzip (bug - it takes the first field of the result row instead of the result files).Zip file name: the name of the zip file or a folder if you want to use a wildcard Source wildcard:if the previous option is a folder, you can enter a regular expression wildcard here.

Note:

The regex is compared against the absolute path of the file and a complete match MUST be made.

For example, to match "/folder/test.zip" a regex of "te..zip" will come up empty. Use ".*te..zip" instead to account for the folders ahead of it. ** For Windows file paths, the direction of the slashes will be reversed in the match, so use "/" instead of "\".

3Unzipped filesThis section allows us to specify what to do with the unzipped files.Use zipfile name as root: check this if you want to create a separate directory for each zip filename (same name as file).Target directory: the target directory to unzip in

Create folder: check this if you want to create the target folder.

Include wildcard (RegExp): use this regular expression to select the files in the zip archives to extract. Exclude wildcard (RegExp): use this regular expression to select the files in the zip archives to extract. Include date in filename: Include the current date in the unzipped filenames (format yyyyMMdd). Include time in filename: Include the time (format HHmmss).

Specify Date time format: allows you to specify the date time format yourself (default is: yyyyMMdd'_'HHmmss).

Date time format: specify the date and time format.

Add original timestamp: select the checkbox if you want to add the original timestamp of the file.

Set modification date to original: select the checkbox to if you want the original modification date of the file.

If files exists: Select the action to take if the target (unzipped) file exists: skip, overwrite, etc.

After extraction: Select the action to take after zip file extraction: Do nothing, Delete files, Move files.

Move files to: if the previous option is "Move files", you can select the target directory here.

Create folder: select the checkbox if you want to create a folder for the unzipped file.

4Advanced

Add extracted file to result: add the extracted file names to the list of result files of this process entry for use in the next process entries.

Unzip for: specify for which row you want to unzip the file.

Ignore errors: select the checkbox if you want the workflow to continue even if there are errors.