Skip to content

add a test file for a directory with a name not ending with a / character#28

Merged
folkertdev merged 1 commit intomainfrom
directory_name_no_slash
Apr 7, 2026
Merged

add a test file for a directory with a name not ending with a / character#28
folkertdev merged 1 commit intomainfrom
directory_name_no_slash

Conversation

@armijnhemel
Copy link
Copy Markdown
Collaborator

Zip implementations differ when it comes to directory names. Most insist that a directory name ends with a / although the ZIP specification isn't clear about this. There are files in the wild where the directory name does not end with a / and the ZIP implementations will unpack an empty file instead, because they don't look at file attributes to see if a file is a directory or not.

A good implementation should look at the file attributes (file size, directory attribute) and just create a directory. At minimum a linter should report that there is something funky going on.

@folkertdev folkertdev force-pushed the directory_name_no_slash branch from 5684cbd to e7f77d9 Compare April 7, 2026 20:01
@folkertdev folkertdev force-pushed the directory_name_no_slash branch from e7f77d9 to 6c0ac96 Compare April 7, 2026 20:02
@folkertdev folkertdev merged commit 5a04b38 into main Apr 7, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants