-
-
Notifications
You must be signed in to change notification settings - Fork 432
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issues when adding an empty directory #756
Comments
Yes it does. Although, I don't think the ziprw classes don't do it, but an entry can be added using
It may be an edge case as you said. I think minizip should probably be able to handle it. |
I have added a commit to |
I have discovered that it already did support empty directories in a zip file and my change only made it worse. I am reverting it. The problem is with the way you are using it.
It would then add |
I have corrected the issue with it not being able to list empty zip. |
running latest build from the
develop
branch on LinuxCreate an empty directory & add to a zip with
minizip
That didn't complain and the exit status was zero.
Let's see what minizip thinks is in the zip file we just created.
What about
unzip
?Looking inside the zip file, it is indeed an empty zip file with just the EOCD header, That zip file is valid, but not common out in the wild.
Questions & possible issues:
minizip
support adding directories ?If minizip doesn't support adding directories as separate entries in a zip file, the resulting zip file created would be classed as normal behaviour.
minizip
doesn't like it.An empty zip file like this is a bit of an edge case, but it feels like a bug
The text was updated successfully, but these errors were encountered: