ztar-0.0.2: Creating and extracting compressed tar archives

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

Codec.Archive.Tar.GZip

Description

Functions to create/extract compressed tar archives.

Synopsis

Documentation

createGZ Source #

Arguments

:: FilePath

tar archive

-> FilePath

directory to archive

-> IO () 

Create a new .tar file from the given directory.

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

$ tar -czf tarball.tar -C dir .

See create for more details.

createGZ' Source #

Arguments

:: FilePath

tar archive

-> FilePath

base directory

-> [FilePath]

files and paths to compress, relative to base directory

-> IO () 

Create a new .tar file from the given paths.

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

$ tar -czf tarball.tar -C base paths

See create for more details.

extractGZ Source #

Arguments

:: FilePath

destination directory

-> FilePath

tar archive

-> IO () 

Extract all the files contained in a .tar file.

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

$ tar -xzf tarball.tar -C dir

See extract for more details.