cape.cfdx.tarcmd: Common tar/untar utilities¶
This module provides simple functions like tar() and untar()
that either call the command-line executable (if available) or the
built-in tarfile module.
- cape.cfdx.tarcmd.tar(ftar: str, *a, fmt: str = '', wc: bool = False)¶
Create an archive
- Call:
>>> tar(ftar, *a, fmt='', wc=False)
- Inputs:
- ftar:
str Name of
.taror.zipfile- fmt: {
''} |str Compression format
'': uncompressed.tarzip: use.zipinstead of.tarz,gz: gzipj,bz2: bzip2J,xz: xzlzma: lzma compressionzst: zst compression
- a:
tuple[str] One or more file name [patterns] to include in archive
- wc:
True| {False} Option for a to be patterns (else fixed file/folder names)
- ftar:
- Versions:
2024-09-11
@ddalle: v1.0