packages feed

tar-conduit 0.2.4 → 0.2.5

raw patch · 3 files changed

+16/−7 lines, 3 files

Files

ChangeLog.md view
@@ -1,6 +1,9 @@-## 0.2.4 - 2018-08-28+## 0.2.5 - 2018-08-28+ * Exported `untarWithExceptions`, `restoreFileIntoLenient`++## 0.2.4 - 2018-08-27  * Use forward slashes on Windows too, see [issue #21](https://github.com/snoyberg/tar-conduit/issues/21)- * Addition of `extractTarballLenient`+ * Addition of `extractTarballLenient` and `restoreFileWithErrors`  ## 0.2.3.1 - 2018-06-06  * Fixed drops associated payload for unsupported headers ((https://github.com/snoyberg/tar-conduit/issues/17)) ([PR 18](https://github.com/snoyberg/tar-conduit/pull/18))
src/Data/Conduit/Tar.hs view
@@ -13,8 +13,10 @@     , tarEntries     , untar     , untarWithFinalizers+    , untarWithExceptions     , restoreFile     , restoreFileInto+    , restoreFileIntoLenient     , restoreFileWithErrors     -- ** Operate on Chunks     , untarChunks@@ -302,7 +304,7 @@ -- -- * Old v7 tar format. -- * ustar: POSIX 1003.1-1988 format--- * and only portions of GNU format:+-- * and only some portions of GNU format: --   * Larger values for `fileUserId`, `fileGroupId`, `fileSize` and `fileModTime`. --   * 'L' type - long file names, but only up to 4096 chars to prevent DoS attack --   * other types are simply discarded@@ -405,7 +407,7 @@ -- | Same as `untarWithFinalizers`, but will also produce a list of any exceptions that might have -- occured during restoration process. ----- @since 0.2.4+-- @since 0.2.5 untarWithExceptions ::        (MonadThrow m, MonadIO m)     => (FileInfo -> ConduitM ByteString (IO (FileInfo, [SomeException])) m ())@@ -894,6 +896,8 @@  -- | Restore all files into a folder. Absolute file paths will be turned into relative to the -- supplied folder. Yields a list with exceptions instead of throwing them.+--+-- @since 0.2.5 restoreFileIntoLenient :: MonadResource m =>     FilePath -> FileInfo -> ConduitM ByteString (IO (FileInfo, [SomeException])) m () restoreFileIntoLenient cd = restoreFileWithErrors True . prependDirectory cd@@ -902,7 +906,7 @@ -- | Same as `extractTarball`, but ignores possible extraction errors. It can still throw a -- `TarException` if the tarball is corrupt or malformed. ----- @since 0.2.4+-- @since 0.2.5 extractTarballLenient :: FilePath -- ^ Filename for the tarball                    -> Maybe FilePath -- ^ Folder where tarball should be extract                    -- to. Default is the current path@@ -927,9 +931,11 @@ -- ability to ignore restoring problematic files and report errors that occured as a list of -- exceptions, which will be returned as a list when finilizer executed. If a list is empty, it -- means, that no errors occured and a file only had a finilizer associated with it.+--+-- @since 0.2.4 restoreFileWithErrors ::        (MonadResource m)-    => Bool+    => Bool -- ^ Lenient flag, results in exceptions thrown instead of collected when set to @False@.     -> FileInfo     -> ConduitM S8.ByteString (IO (FileInfo, [SomeException])) m () restoreFileWithErrors = restoreFileInternal
tar-conduit.cabal view
@@ -1,5 +1,5 @@ name:                tar-conduit-version:             0.2.4+version:             0.2.5 synopsis:            Extract and create tar files using conduit for streaming description:         Please see README.md. This is just filler to avoid warnings. homepage:            https://github.com/snoyberg/tar-conduit#readme