[
  {
    "Id": "63623",
    "ThreadId": "19300",
    "Html": "\r\nHi<br /><br />It doesn't look like the library supports writing an empty directory into the zip file. <br /><br />The ZipDirEntry only has read methods. Am I missing something?<br />",
    "PostedDate": "2007-12-17T16:17:00.58-08:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "64136",
    "ThreadId": "19300",
    "Html": "\r\nI'm getting the same thing.  I'm very interested in seeing a zip/unzip package that can handle empty folders as well.  It seems like whatever is out there has this mental block against getting this one part right instead of forcing one to go out and implement it themselves.  Kind of defeats the purpose of having a package that works for you instead of being just a starting point.<br />",
    "PostedDate": "2007-12-19T11:13:14.013-08:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "64245",
    "ThreadId": "19300",
    "Html": "\r\nI've had some limited success using the J# zip libraries. If you add a trailing \"/\" to the end of the empty folder name, the J# ZipEntry object recognizes it as a directory when adding it the the zip stream. Looking at the zip file with winzip or winrar will show it as an empty folder. However, when you look at the contents of the archive with the built in Windows compression tool, it recognizes the empty directory as a file without an extension (clearly labeling it as file). When I try to unpack the archive, Win2k3 has no problem with it (it unpacks as an empty directory), but Vista chokes on it with a security or permission violation.<br />",
    "PostedDate": "2007-12-19T19:16:41.453-08:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "64251",
    "ThreadId": "19300",
    "Html": "\r\nKometes,<br /><br />I'd be interested in seeing what your J# code looks like to see if I can use it by also writing my own J# code to undo the zip.  I tried the same thing with this DotNet Zip library, i.e., writing my own ZipDir in which I traverse and parse the directory hierarchy, recognizing those folders that are empty and explicitly trying to create an empty folder by doing an AddItem or AddDirectory for the empty directory (with a trailing \"\\\") but the library is not doing it.  In fact, I'm printing out the output of the operations, and the AddItem or AddDirectory calls pretend to be adding the item by outputing the following:<br /><br />adding .\\ziptest\\afile.txt...<br />adding .\\ziptest\\emptydir\\...   &lt;----- this is the cursed empty directory we are all trying to create<br />adding .\\ziptest\\fulldir\\...<br />adding .\\ziptest\\fulldir\\doc1.doc...<br /><br />But the zip file lacks \".\\ziptest\\emptydir\".  I have a hard believing this is such a terribly difficult problem that none of these packages can do it right.  I challenge the authors of this package to fix this problem!  <br />",
    "PostedDate": "2007-12-19T20:01:28.687-08:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "66701",
    "ThreadId": "19300",
    "Html": "\r\nThis discussion has been copied to a work item. Click here to <a href=\"http://www.codeplex.com/DotNetZip/WorkItem/View.aspx?WorkItemId=3151\">go to the work item and continue the discussion</a>.<br />",
    "PostedDate": "2008-01-08T05:57:25.643-08:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "70920",
    "ThreadId": "19300",
    "Html": "\r\nThis is now fixed in the source code, see changeset 14398.  <br />",
    "PostedDate": "2008-01-30T16:32:24.273-08:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "102349",
    "ThreadId": "19300",
    "Html": "Hi I'm using the latest release (1.5), but I can't seem to get this working.<br>\r\n<br>\r\nBasically I'm attempting to create a new archive in memory, create the (empty) folder structure, and then populate the folders with files.<br>\r\n<br>\r\nI can't add the empty folders.&nbsp; I'd like to simply do something along the lines of:<br>\r\n<br>\r\nmyZipFile.CreateDirectory(&quot;Folder1&quot;); // create&nbsp;folder1 in the root<br>\r\nmyZipFile.CreateDirectory(&quot;Folder2&quot;, &quot;Folder1&quot;); // create folder2 inside folder1<br>\r\n<br>\r\nAre there any examples of how to achieve this?<br>\r\n<br>\r\nMany thanks, S\r\n",
    "PostedDate": "2008-07-03T01:06:38.073-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  }
]