ztar-0.1.2: Creating and extracting arbitrary archives

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

Codec.Archive.ZTar.Tar

Description

Functions to create/extract uncompressed tar archives.

Synopsis

Documentation

pattern TarFormat :: ByteString Source #

A pattern matching any ByteString in an uncompressed TAR 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 uncompressed tar archive from the given paths.

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

$ tar -cf archive -C base paths

extract Source #

Arguments

:: FilePath

destination directory

-> FilePath

archive to extract

-> IO () 

Extract all the files contained in an uncompressed tar archive.

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

$ tar -xf archive -C dir