COMPRESSION Extract TAR function

The COMPRESSION Extract TAR function in RPA.

Help CentreBuilding Processes

This article describes the RPA Compression functionality to extract files from a TAR archive.

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


Description

The Extract TAR function extracts files from a TAR or TAR.GZ archive to a destination directory. You can extract all files or specify individual files.


Setting it up

To use the Extract TAR function, follow these instructions:

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

Once on a process map:

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

Input parameters

ParameterRequiredTypeDefaultDescription
Archive PathYesText-The path to the TAR or TAR.GZ file to extract
DestinationYesText-The directory where files should be extracted to
FilesNoText-Specific files to extract (comma-separated). Omit to extract all.
VariableNoTextextracted_filesVariable name to store the list of extracted files

Output variables

VariableTypeDescription
{extracted_files}ArrayArray of file paths that were extracted

Errors

ErrorDescription
Archive not foundThe TAR file does not exist
Invalid archiveThe file is not a valid TAR archive

Tips

  • Handles both .tar and .tar.gz files automatically
  • Use tar-list to preview contents before extracting

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.