[
  {
    "Id": "1057976",
    "ThreadId": "447349",
    "Html": "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 1.9.1.8.\r<br />\n<br />\nBasically 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.\r<br />\n<br />\nSay I have file TopLevelZip.zip structured like this:\r<br />\n<br />\nFile1 at the top level\r<br />\nFile2 at the top level\r<br />\nFolderA  at the top level containing<br />\n<pre><code>File3\nFile4</code></pre>\n\nFolderB at the top level containing<br />\n<pre><code>FolderB2 at the next level containing\n  - File5\n</code></pre>\n\nRunning this VB code:<br />\n<pre><code>  Using zip1 As ZipFile = ZipFile.Read(ZipToUnpack)\n    Dim e As ZipEntry\n    For Each e In zip1\n      Debug.Print(e.Info)\n    Next\n  End Using\n</code></pre>\n\nwill return info on all five files, and FolderB2; but not FolderA or FolderB.\r<br />\nI would like to return as a ZipEntry each of those two missing folders at the top level, as well as what presently appears.\r<br />\nAny ideas?<br />\n",
    "PostedDate": "2013-06-17T17:28:11.293-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "1060982",
    "ThreadId": "447349",
    "Html": "I ran into the same issue, and it appears to be related to how Windows creates zip files. I took a known-working zip file that I'd previously parsed correctly (ie top-level folders were listed as a ZipEntry), extracted it and re-zipped using Windows' own compression tool. On trying to parse this file, there were no top-level directories listed as a ZipEntry. Re-zipping the same folder with WinRar again gave me a correctly-parseable archive.<br />\n",
    "PostedDate": "2013-06-25T09:08:59.907-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "1061112",
    "ThreadId": "447349",
    "Html": "Thanks! Yes, I think you are right. I found a workaround, which is to extract everything to a temporary folder and traverse that (recursively, in case there are any zip files at a lower level).  In some cases that might be a burden, but in this one it works well since I may need to open the lower levels.<br />\n",
    "PostedDate": "2013-06-25T14:44:32.097-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  }
]