Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement tar extraction for multifile mode #184

Closed
wants to merge 2 commits into from

Conversation

tempusfrangit
Copy link
Member

@tempusfrangit tempusfrangit commented Mar 13, 2024

To support tar extraction when running a manifest download, we need to detect tar files. With the addtion of the decompression code paths we can handle a number of tar types. If -x is specified and the file's extension matches a known tar extension, perform the extraction steps.

Known tar types: .tar, .tar.gz, .tgz, .tar.bzip2, .tbz, .tbz2, .tar.xz, .txz, .tar.Z

Closes: #103

@tempusfrangit tempusfrangit requested review from philandstuff and a team March 13, 2024 22:44
@tempusfrangit tempusfrangit self-assigned this Mar 13, 2024
@tempusfrangit tempusfrangit force-pushed the streaming-decompress-tar branch 2 times, most recently from 7ad44ef to cda1292 Compare March 20, 2024 22:52
Implement stream decompression for tar files. This mean that -x becomes
smart enough to handle lzw, bzip2, gzip, and xz (common tar compression)
formats automatically. This will remove a sharp edge on pget and handle
cases of compressed tar files elegantly.
To support tar extraction when running a manifest download, we need to
detect tar files. With the addtion of the decompression code paths we
can handle a number of tar types. If -x is specified and the file's
extension matches a known tar extension, perform the extraction steps.

Known tar types: .tar, .tar.gz, .tgz, .tar.bzip2, .tbz, .tbz2, .tar.xz,
.txz, .tar.Z
@tempusfrangit tempusfrangit marked this pull request as draft April 26, 2024 15:44
Base automatically changed from streaming-decompress-tar to main April 27, 2024 20:21
@tempusfrangit tempusfrangit deleted the tar-extract-multifile branch October 10, 2024 15:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Enhancement: multifile should optionally extract tar files (-x set)
1 participant