mirror of
https://github.com/adamhathcock/sharpcompress.git
synced 2026-02-03 21:23:38 +00:00
[PR #1063] [MERGED] Add alternative option for writing TAR archives with USTAR header format #1489
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?
📋 Pull Request Information
Original PR: https://github.com/adamhathcock/sharpcompress/pull/1063
Author: @drone1400
Created: 12/6/2025
Status: ✅ Merged
Merged: 12/9/2025
Merged by: @adamhathcock
Base:
master← Head:tar-ustar-header-format-support📝 Commits (2)
5161f4dAdd alternative option for writing TAR archives with USTAR header format40b1aadReformatted modified files with csharpier📊 Changes
4 files changed (+154 additions, -5 deletions)
View changed files
📝
src/SharpCompress/Common/Tar/Headers/TarHeader.cs(+131 -2)➕
src/SharpCompress/Common/Tar/Headers/TarHeaderWriteFormat.cs(+7 -0)📝
src/SharpCompress/Writers/Tar/TarWriter.cs(+3 -1)📝
src/SharpCompress/Writers/Tar/TarWriterOptions.cs(+13 -2)📄 Description
Changes Summary
Issues
Context
Some time last year when I was using SharpCompress for a game mod manager, I ran into an issue where tar.bz2 files compressed with SharpCompressed were incompatible with some source ports of that game that would only accept the old USTAR format.
I didn't think of making a pull request at the time as it seems like a very niche thing, but now I'm thinking someone else might find it useful too.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.