libarchive-3.0.2.1: Haskell interface to libarchive
Safe HaskellNone
LanguageHaskell2010

Codec.Archive.Internal.Pack.Lazy

Synopsis

Documentation

entriesToBSL :: Foldable t => t (Entry FilePath ByteString) -> ByteString Source #

In general, this will be more efficient than entriesToBS

Since: 1.0.5.0

entriesToBSLXar :: Foldable t => t (Entry FilePath ByteString) -> ByteString Source #

Won't work when built with -system-libarchive or when libarchive is not built with zlib support.

Since: 2.2.4.0

entriesToIOChunks Source #

Arguments

:: Foldable t 
=> (ArchivePtr -> IO ArchiveResult)

Action to set format of archive

-> t (Entry FilePath ByteString) 
-> (ByteString -> IO ())

IO Action to process the chunks

-> ArchiveM () 

packFiles Source #

Arguments

:: Traversable t 
=> t FilePath

Filepaths relative to the current directory

-> IO ByteString 

Pack files into a tar archive. This will be more efficient than

BSL.writeFile fp . entriesToBSL

Since: 2.0.0.0