Archive
fs_compress¶
Compress files into a common archive format determined by the output filename extension. Supports .tar.bz2, .tar.gz, .tgz, .zip, and .rar.
Arguments¶
- $1 (string): Output archive filename (extension determines format)
- $2 (string): One or more source files or directories to include
Exit codes¶
- 0: Success
- 1: Unrecognised file extension
fs_extract¶
Extract one or more archives, dispatching to the appropriate tool based on file extension. Supports tar variants, 7z, rar, zip, cpio, bz2, gz, xz, lzma, zpaq, arc, and others.
Arguments¶
- $1 (string): One or more archive file paths to extract
Exit codes¶
- 0: All archives extracted successfully
- 1: One or more files were unreadable or had unrecognised extensions