| Maintainer | Brandon Chinn <brandonchinn178@gmail.com> |
|---|---|
| Stability | experimental |
| Portability | portable |
| Safe Haskell | None |
| Language | Haskell2010 |
Codec.Archive.ZTar
Description
Functions to create/extract archives.
Synopsis
- data Compression
- = NoCompression
- | GZip
- | Zip
- create :: Compression -> FilePath -> FilePath -> IO ()
- create' :: Compression -> Path b0 File -> Path b1 Dir -> IO ()
- createFrom :: Compression -> FilePath -> FilePath -> [FilePath] -> IO ()
- createFrom' :: Compression -> Path b0 File -> Path b1 Dir -> [FilePath] -> IO ()
- extract :: FilePath -> FilePath -> IO ()
- extract' :: Path b1 File -> Path b0 Dir -> IO ()
Documentation
data Compression Source #
The compression algorithm to use when creating an archive.
Constructors
| NoCompression | |
| GZip | |
| Zip |
Instances
| Show Compression Source # | |
Defined in Codec.Archive.ZTar Methods showsPrec :: Int -> Compression -> ShowS # show :: Compression -> String # showList :: [Compression] -> ShowS # | |
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.
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 an archive to the given directory. Automatically detects the compression algorithm used in the archive.