2 library(archive): Access several archive formats
AllApplicationManualNameSummaryHelp

  • Documentation
    • Reference manual
    • Packages
      • SWI-Prolog binding to libarchive
        • library(archive): Access several archive formats
          • archive_open/3
          • archive_open/4
          • archive_close/1
          • archive_property/2
          • archive_next_header/2
          • archive_open_entry/2
          • archive_set_header_property/2
          • archive_header_property/2
          • archive_extract/3
          • archive_entries/2
          • archive_data_stream/3
          • archive_create/3
          • archive_foldl/4
Availability::- use_module(library(archive)).(can be autoloaded)
Sourcearchive_extract(+ArchiveFile, +Dir, +Options)
Extract files from the given archive into Dir. Supported options:
remove_prefix(+Prefix)
Strip Prefix from all entries before extracting. If Prefix is a list, then each prefix is tried in order, succeding at the first one that matches. If no prefixes match, an error is reported. If Prefix is an atom, then that prefix is removed.
exclude(+ListOfPatterns)
Ignore members that match one of the given patterns. Patterns are handed to wildcard_match/2.
include(+ListOfPatterns)
Include members that match one of the given patterns. Patterns are handed to wildcard_match/2. The exclude options takes preference if a member matches both the include and the exclude option.
Errors
- existence_error(directory, Dir) if Dir does not exist or is not a directory.
- domain_error(path_prefix(Prefix), Path) if a path in the archive does not start with Prefix
To be done
Add options