The zip-archive library provides functions for creating, modifying,
and extracting files from zip archives.
Certain simplifying assumptions are made about the zip archives: in
particular, there is no support for strong encryption, zip files that span
multiple disks, ZIP64, OS-specific file attributes, or compression
methods other than Deflate. However, the library should be able to
read the most common zip archives, and the archives it produces should
be readable by all standard unzip programs.
As an example of the use of the library, a standalone zip archiver
and extracter, Zip.hs, is provided in the source distribution.
Like toArchive, but returns an Either value instead of raising an
error if the archive cannot be decoded. NOTE: This function only
works properly when the library is compiled against binary >= 0.7.
With earlier versions, it will always return a Right value,
raising an error if parsing fails.
Write an Entry representing a symbolic link to a file.
If the Entry does not represent a symbolic link or
the options do not contain OptPreserveSymbolicLinks, this
function behaves like writeEntry.
Add the specified files to an Archive. If OptRecursive is specified,
recursively add files contained in directories. if OptPreserveSymbolicLinks
is specified, don't recurse into it. If OptVerbose is specified,
print messages to stderr.
Extract all files from an Archive, creating directories
as needed. If OptVerbose is specified, print messages to stderr.
Note that the last-modified time is set correctly only in POSIX,
not in Windows.
This function fails if encrypted entries are present