Help Centre › Building 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:
- Navigate to the process where you would like to add the List TAR 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 TAR option
- Click "Add" once you are done
Input parameters
| Parameter | Required | Type | Default | Description |
|---|---|---|---|---|
| Archive Path | Yes | Text | - | The path to the TAR or TAR.GZ 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, and is_dir properties |
Errors
| Error | Description |
|---|---|
| Archive not found | The 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