[det]archive_create(+OutputFile,
+InputFiles, +Options)Convenience predicate to create an archive in OutputFile with
data from a list of InputFiles and the given Options.
Besides options supported by archive_open/4,
the following options are supported:
- directory(+Directory)
- Changes the directory before adding input files. If this is specified,
paths of input files must be relative to
Directory and archived files will not have Directory
as leading path. This is to simulate
-C
option of the tar
program.
- format(+Format)
- Write mode supports the following formats:‘7zip`,
cpio
,
gnutar
, iso9660
, xar
and zip
.
Note that a particular installation may support only a subset of these,
depending on the configuration of libarchive
.