Skip to main content
Scan a compressed archive for information on the files and directories it contains.

Required Parameters

  • type: The type of the archive. The allowed values are ZIP, TAR, JAR, and GZIP. The default is ZIP.
  • archive: The path on disk, including the filename, of the archive to be scanned.

Output Attributes

  • zip:filename: The name, including path, of the file or directory.
  • zip:compressedsize: The size, in bytes, of the file when compressed.
  • zip:decompressedsize: The size, in bytes, of the file when decompressed.
  • zip:lastmodified: The date and time the file or directory was last modified.

Example

The following example scans an existing zip archive and continually appends the output data with information about each file and directory in the archive. Once all files and directories have been scanned, the data is pushed as an output file.
The output data looks like this: