Please use System.IO.Compression! A fork of the DotNetZip project without signing with a solution that compiles cleanly. This project aims to follow semver to avoid versioning conflicts. DotNetZip is a FAST, FREE class library and toolset for manipulating zip files. Use VB, C# or any .NET language to easily create, extract, or update zip files.
Create a ZIP file with a file named Files/⚾ (i.e. "Files/\u26BE").
Read the ZIP file with DotNetZip.
Get the entry and inspect the IsDirectory property.
Example code
using (var zip = new ZipFile("test.zip", Encoding.UTF8))
{
zip.AddEntry("Files/\u26BE", new byte[0]);
zip.Save();
}
using (var zip = ZipFile.Read("test.zip"))
{
ZipEntry entry = zip["Files/\u26BE"];
Console.WriteLine("IsDirectory: " + entry.IsDirectory);
}
Steps to reproduce
Files/⚾
(i.e."Files/\u26BE"
).IsDirectory
property.Example code
Expected behavior
The
IsDirectory
property isfalse
.Actual behavior
The
IsDirectory
property istrue
.Versions