mirror of
https://github.com/adamhathcock/sharpcompress.git
synced 2026-02-03 21:23:38 +00:00
Deterministic tar file #448
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?
Originally created by @hamarb123 on GitHub (Apr 7, 2021).
Hi, I'm trying to make it so that the tar file is the same every time given the same
Dictionary<string, byte[]> files.Here's my current code, but I'm getting a different output each time.
I cannot work out how to make sure it's the same each time as when I open the tar file in something like notepad++, a different file is at the top every time.
(I know that I should be disposing those streams after they're not in use, but I wanted to get it to work first)
Could you please help me, thanks!
@smuellener commented on GitHub (Dec 7, 2021):
Did you find a solution for this?
@hamarb123 commented on GitHub (Dec 7, 2021):
My solution is here:
3a14fb517f/Automation/Compressor/Program.cs. I think the main issue was my sorting code. Note: that code is copyright, but I'm happy for you to copy the relevant parts to solve this.