[Question] How can I set a general purpose flag of a file? #75

Open
opened 2026-01-29 22:06:13 +00:00 by claunia · 3 comments
Owner

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.

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.
Author
Owner

@adamhathcock commented on GitHub (Dec 24, 2015):

I don't see the need to make sharpcompress provide a way to do this.

@adamhathcock commented on GitHub (Dec 24, 2015): I don't see the need to make sharpcompress provide a way to do this.
Author
Owner

@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.

@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.
Author
Owner

@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

@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
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/sharpcompress#75