libarchive-3.0.1.0: Haskell interface to libarchive
Safe HaskellNone
LanguageHaskell2010

Codec.Archive.Internal.Unpack

Synopsis

Documentation

unpackEntriesFp :: ArchivePtr -> FilePath -> ArchiveM () Source #

Unpack an archive in a given directory

unpackArchive Source #

Arguments

:: FilePath

Filepath pointing to archive

-> FilePath

Dirctory to unpack in

-> ArchiveM () 

This is more efficient than

unpackToDir "llvm" =<< BS.readFile "llvm.tar"

readArchiveFile :: FilePath -> ArchiveM [Entry FilePath ByteString] Source #

Read an archive from a file. The format of the archive is automatically detected.

Since: 1.0.0.0

readArchiveBS :: ByteString -> Either ArchiveResult [Entry FilePath ByteString] Source #

Read an archive contained in a ByteString. The format of the archive is automatically detected.

Since: 1.0.0.0

unpackToDir Source #

Arguments

:: FilePath

Directory to unpack in

-> ByteString

ByteString containing archive

-> ArchiveM () 

getHsEntry :: Integral a => (ArchivePtr -> a -> IO e) -> ArchivePtr -> IO (Maybe (Entry FilePath e)) Source #

Yield the next entry in an archive