-
Notifications
You must be signed in to change notification settings - Fork 272
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
Keep original entry name (if open in reading mode) #341
Conversation
Hello, I've submitted this PR with some changes which can help you work on windows. Long story short, this PR does not rewrite entry names if archive is opened for reading (keep original names). In other words, if you have incompatible zip archive entry names (e.g. That's why, I think there is no reason to have Anyway, PTAL, if it works for you. Btw. This PR should address https://github.com/kuba--/zip/issues/335 issue, as well. |
I took a look, but I'm not really familiar enough with your codebase to judge the effects of these changes... Does this mean that if a .zip contains |
Generally speaking, existing names will be not changed, so if you open for reading and walk through entries you will see original names (like |
I guess my question then is what specifically does this change in regards to the libraries behavior that would be relevant to #335, and are there any potential side-effects of that? Would it make sense to have an optional configuration option to tell a precompiled kubazip lib whether to apply various path normalization heuristics, or have the archive-walking API provide access to raw filename entries so that the application can sort things out as needed (if it doesn't already). Also wondering if there's anything in the central directory that might help in determining which path normalization heuristics may be reasonable to apply, or if all that metadata is too outdated to be useful? |
First of all, the method Last but not least, we've already had |
Thanks for the heads up, I'll keep it in mind for the next zip-library upgrade. |
No description provided.