ztar-1.0.1: Creating and extracting arbitrary archives

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

Codec.Archive.ZTar.GZip

Description

Functions to create/extract GZIP-compressed archives.

Synopsis

Documentation

pattern GZipFormat :: ByteString Source #

A pattern matching any ByteString in the GZip 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 GZip from the given paths.

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

$ tar -czf archive -C base paths

extract Source #

Arguments

:: FilePath

archive to extract

-> FilePath

destination directory

-> IO () 

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

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

$ tar -xf archive -C dir