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 thetar
program. - format(+Format)
- Write mode supports the following formats:‘7zip
,
cpio,
gnutar,
iso9660,
xarand
zip`. Note that a particular installation may support only a subset of these, depending on the configuration oflibarchive
.