mirror of
https://github.com/adamhathcock/sharpcompress.git
synced 2026-02-03 21:23:38 +00:00
[Question] How can I set a general purpose flag of a file? #75
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 @Crayder on GitHub (Dec 24, 2015).
I'm trying to change the bit 11 flag of each file in a ZIP archive.
@adamhathcock commented on GitHub (Dec 24, 2015):
I don't see the need to make sharpcompress provide a way to do this.
@Crayder commented on GitHub (Dec 24, 2015):
I was assuming it already did. The only way I see currently possible is looping through the zip's bytes and finding each file header. If this was a feature it'd be a lot more convenient.
@adamhathcock commented on GitHub (Dec 28, 2015):
You want to be able to read an existing zip, set the flag then have it written out again?
I'd want to see an abstraction over the flag on zip entry.
I haven't looked at the spec to see what this flag is