archivecontents(
archivecontents(
ARCHIVEFILE
)

The archivecontents( function lists the contents of a compressed archive in .zip, .tar.gz or .tar.bz2 format.

Parameters

This function has one parameter:

archivefile – the path and filename of an archive file (the path may be absolute or database-relative).

Description

This function lists the contents of a compressed archive in .zip, .tar.gz or .tar.bz2 format. If an archive contains multiple files, each will be listed on a separate line.

    archivecontents("~/Documents/Snapshot.zip") ☞ Flower.tiff

See Also

- compress -- compresses a file or an entire folder.
- uncompress -- uncompresses a `.zip`, `.tar.gz` or `.tar.bz2` file into a file or an entire folder.
- zipcompress -- compresses a file or an entire folder into a zip file (using ditto shell tool).
- zipuncompress -- uncompresses a file or an entire folder from a zip file (using ditto shell tool).

History

Version | Status | Notes
10.0 | New | New in this version.