close_parent(true)
is used to close
stream if the archive is closed using archive_close/1.
For other options, the defaults are typically fine. The option format(raw)
must be used to process compressed streams that do not contain explicit
entries (e.g., gzip'ed data) unambibuously. The raw
format
creates a pseudo archive holding a single member named data
.
true
(default false
), Stream
is closed if archive_close/1
is called on Archive.filter(Compression)
. Deprecated.all
is assumed. In write mode, none is assumed.
Supported values are all
, bzip2
, compress
, gzip
,
grzip
, lrzip
, lzip
, lzma
, lzop
, none
, rpm
, uu
and xz
. The value all
is default for read, none
for write.all
is
assumed for read mode. Note that
all
does not include raw
and mtree
.
To open both archive and non-archive files, both format(all)
and
format(raw)
and/or format(mtree)
must be
specified. Supported values are: all
, 7zip
, ar
, cab
, cpio
, empty
, gnutar
,
iso9660
, lha
, mtree
, rar
, raw
, tar
, xar
and zip
. The value all
is default for read.Note that the actually supported compression types and formats may vary depending on the version and installation options of the underlying libarchive library. This predicate raises a domain error if the (explicitly) requested format is not supported.
domain_error(filter, Filter)
if the requested filter is
not supported. domain_error(format, Format)
if the requested format type
is not supported.