-
Notifications
You must be signed in to change notification settings - Fork 232
Unable to get Windows to read certain deflated files #99
Comments
This is a very strange issue indeed! I have not been able to find the exact cause just yet, but it does not seem to be a related to it being a file in a subdirectory. If you change the contents of the subdir/noproblem.txt file to writer.write_all(b"Windows will show an error when trying to extract this file.\r\nHowever, it has no problems with it after this modification.\r\n").unwrap(); then it will extract just fine. The issue also seems to be gone when changing the compression method to |
So I have been investigating this issue, and the problem seems to be in the deflate stream of certain small files. I will try to get it resolved with the people of libflate. Technical info: |
This should be fixed in version 0.5.1. |
Awesome. Thanks for getting that fixed, and so fast! Fist bump! 🤜 🤛 (and thanks for the library itself) |
If I create a zip file with a subdirectory, Windows won't properly read that subdirectory. Any loose files sitting in the root of the archive can be extracted just fine, but trying to extract a file in a subdirectory yields an error.
The following will generate a zip file that reproduces this behavior:
And here is the error I'm encountering when trying to drag / drop the
subdir/problem.txt
file onto my Desktop:Running Windows 10 Home edition. 7zip extracts this just fine.
I recognize this may be a problem with Windows' built-in zip file support, but then again I've never encountered a zip file that didn't work out of the box with Windows.
The text was updated successfully, but these errors were encountered: