I'm seeing some odd behavior when I try to read a zip file and enumerate the contents. I'm using Visual Basic 10 on Windows 7, and Ionic.Zip.Reduced.dll version 184.108.40.206.
Basically DNZ doesn't recognize folders in the top level of the zip file. It recognizes the files within them, and also the subfolders within them and the files within those subfolders.
Say I have file TopLevelZip.zip structured like this:
File1 at the top level
File2 at the top level
FolderA at the top level containing
FolderB at the top level containing
FolderB2 at the next level containing
Running this VB code:
Using zip1 As ZipFile = ZipFile.Read(ZipToUnpack)
Dim e As ZipEntry
For Each e In zip1
will return info on all five files, and FolderB2; but not FolderA or FolderB.
I would like to return as a ZipEntry each of those two missing folders at the top level, as well as what presently appears.