You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a zip file is created without adding any files to it, it can not be opened and throws: ICSharpCode.SharpZipLib.Zip.ZipException: Cannot find central directory
Steps to reproduce
using (var b = ZipFile.Create("c:\\temp\\sharpzip.zip")) { }
using (var b = new ZipFile("c:\\temp\\sharpzip.zip")) { } // Throws exception
Expected behaviour
The file should be opened and contain no files.
Operating System
Windows
Framework Version
.NET 7
Tags
ZIP
Additional context
No response
The text was updated successfully, but these errors were encountered:
Describe the bug
If a zip file is created without adding any files to it, it can not be opened and throws:
ICSharpCode.SharpZipLib.Zip.ZipException: Cannot find central directory
Steps to reproduce
Expected behaviour
The file should be opened and contain no files.
Operating System
Windows
Framework Version
.NET 7
Tags
ZIP
Additional context
No response
The text was updated successfully, but these errors were encountered: