File Archiver
Author(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:
:- use_module(library(archive_files)). - Exports:
- Predicates:
archive_files/4.
- Predicates:
- Imports:
- System library modules:
native_props, terms, process, pathnames, system, system_extra, port_reify, bundle_flags, streams. - Packages:
prelude, nonpure, condcomp, assertions, basicmodes, nativeprops, regtypes, fsyntax.
- System library modules:
Documentation on exports
PREDICATE
Usage:archive_files(SourceDir,Files,TopDir,Archive)
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.