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