-
Notifications
You must be signed in to change notification settings - Fork 145
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
Backslashes in zip entry name #262
Comments
I have no way to unit test this - do you have such a zip file you can attach to this issue? |
PowerShell for example:
|
Reopening this so I can test it. Thanks for the test-case |
I just had a test in
It occurred to me to wonder if better-files would help with the backslash curse. Registering my interest here; I haven't gone through the API yet. As of 2020, I refuse to convert slashes. |
Some Windows tools creates the zip-archives with the backslashes in the entry names as path separators instead of slashes. E.g.:
The *nix tools accepts this format (with warnings like
warning: foo.zip appears to use backslashes as path separators
forunzip
) and successfully extracts the directory tree. E.g.:But
better-files
can't do this. It extracts paths as is, plain not tree:Simple replace in
ZipEntryOps.extractTo()
method might resolve this problem:The text was updated successfully, but these errors were encountered: