-
Notifications
You must be signed in to change notification settings - Fork 483
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
If I create a zip file that contain zero size files,the Windows 10 Explorer build-in zip viewer can't uncompress it. #243
Comments
Couple questions: does anything else open it? Maybe Windows 10 just doesn't like zero byte files. Can you show me your code? |
@adamhathcock 7zip can open it. Here is the error message.The screenshot is created by the Chinese version of Windows 10, but I hope it can be useful. |
If you create a file like this with a zero byte entry in another application, can Windows 10 open that? I'm saying it might be a failing (or security check) for Windows 10. |
@adamhathcock I can create a zip file that contain zero size file by 7zip. And it can be opened by Windows 10. Here is the file. |
@adamhathcock Sharpziplib can't open the file that created by sharpcompress and contain zero file too |
I think it's because the entry is still marked as compressed even though it's zero bytes. The 7Zip created file you gave has the entry marked as CompressionMethod = None. I guess that's the difference. I don't want to make SharpCompress smart enough to recognize that. That's a user responsibility I think. |
Found a bug while reviewing this though: #249 |
@adamhathcock Thanks |
English is not my native language; please excuse typing errors.
Thanks
The text was updated successfully, but these errors were encountered: