mirror of
https://github.com/adamhathcock/sharpcompress.git
synced 2026-02-13 13:35:28 +00:00
[PR #1069] WIP: Implement compressed tar archive support in ArchiveFactory #1492
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Original Pull Request: https://github.com/adamhathcock/sharpcompress/pull/1069
State: closed
Merged: No
Users attempting to open tar.bz2/tar.lz archives via
ArchiveFactory.Open()received a generic "Cannot determine compressed stream type" error. Per feedback, these formats should be supported directly via ArchiveFactory.Open() for seekable and file streams.Work In Progress
This PR is implementing full support for compressed tar formats (tar.bz2, tar.lz, tar.xz, tar.zst, etc.) via the Archive API.
Current Implementation
Enhanced
TarFactory.IsArchive(): Detects compressed tar formats by:Enhanced
TarFactory.Open(): Decompresses compressed tar files to seekable MemoryStream and returns TarArchiveCurrent Blockers
leaveOpenparameterQuestions for Review
Awaiting guidance on preferred architecture approach before completing implementation.
Original Issue: Users trying to decompress tar.bz2 or tar.lz files created with SharpCompress received:
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.