COMPRESSION List ZIP function

The COMPRESSION List ZIP function in RPA.

Help CentreBuilding 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:

  1. Navigate to the process where you would like to add the List ZIP function
  2. Click on the green button’s drop-down (right side of the green button labelled “Process”)
  3. On the menu that appears, click on the “+ Activity” item
  4. From here you can select the COMPRESSION List ZIP option
  5. Click "Add" once you are done

Input parameters

ParameterRequiredTypeDefaultDescription
Archive PathYesText-The path to the ZIP file to list
VariableNoTextarchive_contentsVariable name to store the contents list

Output variables

VariableTypeDescription
{archive_contents}ArrayArray of objects with name, size, compressed_size, and is_dir properties

Errors

ErrorDescription
Archive not foundThe ZIP file does not exist

Tips

  • Use this to inspect archive contents before extracting
  • Check file sizes to estimate extraction disk space requirements

Related functions

See it working on your own data

Everything documented here ships with the platform – try the document tools free, or go live in 7 days.