Skip to content

Is there a way to tell whether a chunk is a directory? #90

Answered by michalc
DoctorJohn asked this question in Q&A
Discussion options

You must be logged in to vote

(1) this scenario is unsupported

So it's historically this... stream-unzip wasn't really made with this in mind: it was very much about getting at the data in files and not really caring about directories (or even any other metadata that comes in ZIP files, like mode/permissions or modification times of the member files)

(2) there is a way to detect it which I don't know yet

But there might be a way. When adding support to stream-zip making empty directories, it did seem like empty directories are just empty members with a name that ends in a forward slash. You could investigate that? (And also check what happens with ZIP files made from both Windows and *nix-y things in case there ar…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@DoctorJohn
Comment options

@DoctorJohn
Comment options

@michalc
Comment options

Answer selected by DoctorJohn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants