|On this page|
This node looks in the
output attribute on each incoming work items for file paths tagged
file/archive. If the file name’s extension is supported (
.tar.gz), the node extracts the files inside the archive into a given directory.
If you just want to extract files from one or more pre-existing archive files, do the following:
Create a File Pattern node.
Set the Pattern to match the archive(s) you want to extract. For example,
Make sure Split results into separate items is on.
The node will generate work items for each archive, with its
outputattribute set to the archive path. The path should automatically be tagged
file/archivebased on the extension.
Connect a File Decompress node. Turn on Output file and set it to the directory you want to extract files into.
The File Decompress node sets each work item’s
output to the path of the directory it extracted into, not to the list of extracted files, as you might expect.
A list of input archives that will be decompressed.
A list of directories where archives will be extracted into.
Turn this on and set it to the path to the directory you want to extract files into. The node will create the directory if it does not exist.
This example demonstrates how to decompress files using TOPs / PDG.
The following examples include this node.