ztar-0.1.3: Creating and extracting arbitrary archives

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

Codec.Archive.ZTar

Description

Functions to create/extract archives.

Synopsis

Documentation

data Compression Source #

The compression algorithm to use when creating an archive.

Constructors

NoCompression 
GZip 
Zip 
Instances
Show Compression Source # 
Instance details

Defined in Codec.Archive.ZTar

create Source #

Arguments

:: Compression 
-> PathFile b0

archive file to create

-> PathDir b1

directory to archive

-> IO () 

Create a new archive from the given directory using the given compression algorithm.

create' Source #

Arguments

:: Compression 
-> PathFile b0

archive file to create

-> PathDir b1

base directory

-> [FilePath]

files and paths to compress, relative to base directory

-> IO () 

Create a new archive from the given paths using the given compression algorithm.

extract Source #

Arguments

:: PathDir b0

destination directory

-> PathFile b1

archive to extract

-> IO () 

Extract an archive to the given directory. Automatically detects the compression algorithm. used in the archive.