Maintainer | Brandon Chinn <brandonchinn178@gmail.com> |
---|---|
Stability | experimental |
Portability | portable |
Safe Haskell | Safe |
Language | Haskell2010 |
The Haskell tar
library has a lot of bugs, including:
- Does not preserve executability (https:/github.comhaskelltarissues/25)
- Does not preserve symbolic links (https:/github.comhaskelltarissues/34)
- Does not allow symbolic links to `..` in a nested directory (https:/github.comhaskelltarissues/32)
Because of these bugs, we will be using the tar
Unix command, which should be commonly available
on most systems. This module should be deprecated when the Haskell tar
library is updated.
Note that this module contains the same security considerations as the tar
Unix command. Follow
the same security guidelines you would with the tar
Unix command when using this module.
Synopsis
- tar :: [String] -> IO ()
- create :: FilePath -> FilePath -> [FilePath] -> IO ()
- extract :: FilePath -> FilePath -> IO ()
- newtype TarArchive = TarArchive {
- unTar :: ByteString
- read :: ByteString -> TarArchive
- write :: TarArchive -> ByteString
- pack :: FilePath -> [FilePath] -> IO TarArchive
- unpack :: FilePath -> TarArchive -> IO ()
Documentation
newtype TarArchive Source #
read :: ByteString -> TarArchive Source #
write :: TarArchive -> ByteString Source #