ztar-1.0.1: 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 
-> FilePath

archive file to create

-> FilePath

directory to archive

-> IO () 

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

create' :: Compression -> Path b0 File -> Path b1 Dir -> IO () Source #

Same as create but using Path types.

createFrom Source #

Arguments

:: Compression 
-> FilePath

archive file to create

-> FilePath

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.

createFrom' :: Compression -> Path b0 File -> Path b1 Dir -> [FilePath] -> IO () Source #

Same as createFrom but using Path types.

extract Source #

Arguments

:: FilePath

archive to extract

-> FilePath

destination directory

-> IO () 

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

extract' :: Path b1 File -> Path b0 Dir -> IO () Source #

Same as extract but using Path types.