File ArchiverAuthor(s): Ciao Development Team, Jose F. Morales.
This module offers predicates to generate file archives in some common formats. An archive file is a file that is composed of one or more computer files along with metadata, with can be compressed. See archive_files/4 for the supported formats.
Usage and interface
- Library usage:
Documentation on exports
Create an archive Archive of the given files at Files, relative to SourceDir. If TopDir is not ”, files are placed inside the archive under TopDir.
The format is automatically detected from the extension of Archive (where valid formats are: .tar.gz, .tgz, .tar.bz2, .tbz, and .zip).
- Call and exit should be compatible with:
(basic_props:atm/1)SourceDir is an atom.
(basic_props:list/2)Files is a list of atms.
(basic_props:atm/1)TopDir is an atom.
(basic_props:atm/1)Archive is an atom.