COMPRESSION List TAR function

The COMPRESSION List TAR function in RPA.

Help CentreBuilding Processes

This article describes the RPA Compression functionality to list the contents of a TAR archive.

For a full list of available functions, please read COMPRESSION functions.


Description

The List TAR function lists all files and directories inside a TAR or TAR.GZ archive, including their sizes.


Setting it up

To use the List TAR function, follow these instructions:

{{popups:rpas/add:action=tar-list}}

Once on a process map:

  1. Navigate to the process where you would like to add the List TAR 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 TAR option
  5. Click "Add" once you are done

Input parameters

ParameterRequiredTypeDefaultDescription
Archive PathYesText-The path to the TAR or TAR.GZ file to list
VariableNoTextarchive_contentsVariable name to store the contents list

Output variables

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

Errors

ErrorDescription
Archive not foundThe TAR file does not exist

Tips

  • Preview archive contents before extraction to verify the expected files are present
  • Works with both .tar and .tar.gz archives

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.