ztar-0.1.2: Creating and extracting arbitrary archives

MaintainerBrandon Chinn <brandonchinn178@gmail.com>
Stabilityexperimental
Portabilityportable
Safe HaskellNone
LanguageHaskell2010

Codec.Archive.ZTar.Zip

Description

Functions to create/extract ZIP-compressed archives.

Synopsis

Documentation

pattern ZipFormat :: ByteString Source #

A pattern matching any ByteString in the Zip format.

create Source #

Arguments

:: FilePath

archive to create

-> FilePath

base directory

-> [FilePath]

files and paths to compress, relative to base directory

-> IO () 

Create a new archive compressed with Zip from the given paths.

It is equivalent to calling the standard zip program like so:

$ CURR=$PWD; (cd base && zip -r archive paths && mv archive $CURR)

extract Source #

Arguments

:: FilePath

destination directory

-> FilePath

archive to extract

-> IO () 

Extract all the files contained in an archive compressed with Zip.

It is equivalent to calling the standard zip program like so:

$ mkdir -p dir && unzip archive -d dir