Definition and Usage
This command decompresses zip files to a specified location. It allows you to extract the contents of compressed zip archives to either the same directory as the source file or to a custom destination folder.
Parameter Values
Input parameters
Parameter | Description | Possible Values | Required | Options / Notes |
File to decompress | Select or enter the full path of the zip file to decompress | File path | Yes | Use the file selector or enter a path manually |
Destination folder | Please select whether to save the extracted files in the same directory as the source file or in a specified folder | Same as source directory, Select target folder | Yes | When "Select target folder" is chosen, you need to specify the folder path |
Folder path | Select a folder, or enter the folder path where the extracted file will be saved | Folder path | Conditional | Required only when "Select target folder" is selected; If the folder doesn't exist, it will be created automatically |
Create folder with same name | If ticked, a folder with the same name as the zip file will be created in the selected folder, and the zip file will be extracted into that folder | True/False | No | Helps organize extracted files |
Store extracted file path into | Store the extracted file/folder path into a new variable | Variable name | No | Output variable that will contain the extraction path |
Advanced settings
Parameter | Description | Possible Values | Required | Options / Notes |
Extract password | The password for extracting the zip file. If none, leave blank | Text | No | Required only for password-protected zip files |
Error handling
Parameter Name | Description |
Throw error & stop | When an error occurs, the action will trigger an error and stop the execution of the entire app |
Retry command | If an error occurs, the action will retry the command in an attempt to resolve the issue and continue the process |
Ignore error & continue | When an error occurs, the action will be ignored, and the workflow will continue without interruption |
Variables produced
This action produces a variable that contains the path to the extracted file or folder, which can be used in subsequent steps of your workflow.
Using Variables in Conditions
You can use variables in the parameters by clicking the {x} button or selecting a variable from the dropdown. For example, you can use a variable for the zip file path if it's determined dynamically during execution. Similarly, you can use variables for destination paths or passwords if they need to be determined at runtime.
Notes
Ensure that you have sufficient permissions to read the zip file and write to the destination folder.
For password-protected zip files, you must provide the correct password in the advanced settings.
If the "Create folder with same name" option is selected, the contents will be extracted to a subfolder with the same name as the zip file (without the .zip extension).
The command supports standard zip file formats; specialized compression formats may not be supported.
Large zip files may take longer to decompress, depending on their size and your system's performance.