Help Centre › Building Processes
This article describes the RPA Compression functionality to list the contents of a ZIP archive.
For a full list of available functions, please read COMPRESSION functions.
Description
The List ZIP function lists all files and directories inside a ZIP archive, including their sizes and compressed sizes.
Setting it up
To use the List ZIP function, follow these instructions:
{{popups:rpas/add:action=zip-list}}
Once on a process map:
- Navigate to the process where you would like to add the List ZIP function
- Click on the green button’s drop-down (right side of the green button labelled “Process”)
- On the menu that appears, click on the “+ Activity” item
- From here you can select the COMPRESSION List ZIP option
- Click "Add" once you are done
Input parameters
| Parameter | Required | Type | Default | Description |
|---|---|---|---|---|
| Archive Path | Yes | Text | - | The path to the ZIP file to list |
| Variable | No | Text | archive_contents | Variable name to store the contents list |
Output variables
| Variable | Type | Description |
|---|---|---|
| {archive_contents} | Array | Array of objects with name, size, compressed_size, and is_dir properties |
Errors
| Error | Description |
|---|---|
| Archive not found | The ZIP file does not exist |
Tips
- Use this to inspect archive contents before extracting
- Check file sizes to estimate extraction disk space requirements