unzip
| unzip | 
  Purpose
 
 Extract files from a Zip archive.
 
  Synopsis
 
procedure unzip(opt:integer, zipfile:text, dir:text, filters:string, password:text)
 procedure unzip(opt:integer, zipfile:text, dir:text, filters:string)
 procedure unzip(zipfile:text, dir:text)
 procedure unzip(zipfile:text)
 
  Arguments
 
| 
     opt 
     | 
     Options:
     
 | ||||||
| 
     zipfile 
     | 
     File name of the archive
     | ||||||
| 
     dir 
     | 
     Destination path (default: current directory)
     | ||||||
| 
     filters 
     | 
     File name filters (default: all files extracted)
     | ||||||
| 
     password 
     | 
     Password to access an encrypted archive
     | 
  Example
 
 The following extracts all files included in the archive
 myfiles.zip to directory
 mydir:
 
unzip("myfiles.zip","mydir")
  Further information
 
 1. The
 filters argument has a similar structure as the corresponding argument of procedure
 findfiles except that wildcard characters
 "*" and
 "?" may appear anywhere in a path. A file is extracted if it matches any of the patterns of this list.
 
 2. When evaluating the filters, file name matching is achieved using function
 pathmatch and differences may be observed depending on the operating system (
 e.g. file names are case sensitive under Posix systems but not under Windows).
 
 3. This implementation only supports the standard Zip format (only 32bit and basic encryption algorithm).
 
 4. By default file names are expected to be represented according the current system encoding in the archive. To select a different encoding use the
 enc: file name prefix (see Section
 Character encoding of text files) on the archive name (
 e.g.
 "enc:utf-8,myarc.zip").
 
  Related topics
 
  Module
 
 
