Skip to content

Unzip Activity

The Unzip activity extracts files from a compressed archive. It enables users to decompress .zip files to a specified destination directory. This activity supports conditional overwriting of existing files and password-protected archives.

Field Description Requirement
File name The full path and name of the .zip file to be decompressed. Required
Destination path Specifies the directory where the unzipped contents will be placed. Required
Overwrite If selected, existing files or folders with the same name in the destination path will be replaced. Optional
Password The password for the compressed archive, if it is password-protected. Optional

Action Types & Examples

Unzip Operation Status

  • Format: boolean
  • Example Result: true

Implementation Examples

Field Setup - File name: C:\Temp\Test.zip - Destination path: C:\Temp\ExtractedFiles - Overwrite: true - Password: mySecretPassword

Execution Parameters - File name: C:\Archives\ProjectData.zip - Destination path: C:\Projects\Data - Overwrite: false - Password: ""

Technical Notes

When the compressed file is being converted to a wide format, a new name cannot be given; it comes to the expanded format with its original name.

If the destination path ends with a file separator (e.g., C:\Temp\), the file or folder will be located directly in that path. Otherwise, if the destination path includes a file or folder name at the end (e.g., C:\Temp\NewFolder), the action will proceed with renaming support.

Overwrite Status: - True: If no file with the same name exists in the relevant directory, the content is unzipped. If a file with the same name exists, the old file is overwritten and the content is unzipped. - False: If no file with the same name exists in the relevant directory, the content is unzipped. If a file with the same name exists, the content will not be unzipped, and the activity will return an error with the message "File already exists in directory."