Skip to content
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

.zip file with \ not working as expected #370

Open
soywiz opened this issue Jan 27, 2024 · 2 comments
Open

.zip file with \ not working as expected #370

soywiz opened this issue Jan 27, 2024 · 2 comments

Comments

@soywiz
Copy link

soywiz commented Jan 27, 2024

Folders not appearing correctly in NanaZip:

image

Working properly opening with windows explorer:

image

It is using \ as file separator instead of /:

image

You can find that file here:

https://fastdl.mongodb.org/tools/db/mongodb-database-tools-windows-x86_64-100.3.1.zip

@dinhngtu
Copy link
Contributor

dinhngtu commented Jan 28, 2024

Using backslashes instead of forward slashes as path separator is contrary to the zip specification (see section 4.4.17). So I think the resulting filename is expected behavior.

@soywiz
Copy link
Author

soywiz commented Jan 28, 2024

Indeed as you noticed that .zip file doesn't strictly adhere to the formal spec. I don't know the reason why that ones was generated, specially from a major project.

I was not able to extract it properly with NanaZip and had to extract it with Windows Explorer. When I extracted it with nanozip it generated strange file names and I was a bit confused at first because I had to rename them manually.

Since \ is probably not a valid character in windows file names,
Could by any chance this be taken into account and pragmatically consider both \ and / as folder separator as Windows Explorer does, or at least notify that \ was used as a warning so I know the names are invalid (or both things)?

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

No branches or pull requests

2 participants