You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Extends archive extraction to support bzip2 compressed files (.bz2) and
bzip2 compressed tarballs (.tar.bz2, .tbz2, .tb2) in addition to the
existing gzip support.
Implementation:
- Added application/x-bzip2 and application/x-bzip MIME type detection
- Added bunzip2 decompression handler in inflate()
- Extended extractArchive() to handle two-stage bzip2 extraction
- Mirrors existing gzip pattern for consistency
Supported formats after this change:
- .tar, .tar.gz/.tgz, .tar.bz2/.tbz2/.tb2, .gz, .bz2, .zip
Updated documentation in README.md to reflect new capabilities.
Fixes#81
Signed-off-by: Mathias Bogaert <[email protected]>
Copy file name to clipboardExpand all lines: README.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -154,7 +154,7 @@ Places the following files in the destination:
154
154
155
155
*`skip_download`: *Optional.* Skip downloading object from S3. Same parameter as source configuration but used to define/override by get. Value needs to be a true/false string.
156
156
157
-
*`unpack`: *Optional.* If true and the file is an archive (tar, gzipped tar, other gzipped file, or zip), unpack the file. Gzipped tarballs will be both ungzipped and untarred. It is ignored when `get` is running on the initial version.
157
+
*`unpack`: *Optional.* If true and the file is an archive (tar, gzipped tar, bzip2 compressed tar, other gzipped file, other bzip2 compressed file, or zip), unpack the file. Gzipped and bzip2 compressed tarballs will be both decompressed and untarred. It is ignored when `get` is running on the initial version.
158
158
159
159
*`download_tags`: *Optional.* Write object tags to `tags.json`. Value needs to be a true/false string.
160
160
@@ -326,4 +326,4 @@ In addition to the required permissions above, the `s3:PutObjectTagging` permiss
326
326
### Contributing
327
327
328
328
Please make all pull requests to the `master` branch and ensure tests pass
0 commit comments