Houdini 17.5 Nodes TOP nodes

File Decompress TOP node

Decompresses archive files specified by incoming work items into individual files.

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 (.zip or .tar.gz), the node extracts the files inside the archive into a given directory.

(Nodes that produce file results (for example, File Pattern or File Compress) should automatically tag archive files as file/archive based on the extension.)

If you just want to extract files from one or more pre-existing archive files, do the following:

  1. Create a File Pattern node.

    • Set the Pattern to match the archive(s) you want to extract. For example, $PDG_DIR/sources/*.zip.

    • Make sure Split results into separate items is on.

    The node will generate work items for each archive, with its output attribute set to the archive path. The path should automatically be tagged file/archive based on the extension.

  2. Connect a File Decompress node. Turn on Output file and set it to the directory you want to extract files into.

Warning

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.

TOP Attributes

input_archives

string

A list of input archives that will be decompressed.

output_dirs

string

A list of directories where archives will be extracted into.

Parameters

Output Folder

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.

Examples

example_top_filedecompress Example for File Decompress TOP node

This example demonstrates how to decompress files using TOPs / PDG.

The following examples include this node.

example_top_filedecompress Example for File Decompress TOP node

This example demonstrates how to decompress files using TOPs / PDG.

See also

TOP nodes