[
  {
    "Id": "113390",
    "ThreadId": "34205",
    "Html": "Hello,<br>\r\n<br>\r\nI can add files by stream - thats a great thing as I can use this lib using a database as stream input.<br>\r\n<br>\r\nWhat I miss it the ability to add an empty directory - without any access to the real filesystem. Such a directory called A is added automatically if I add a streamed file to this subdirectory like &quot;A\\x.txt&quot;. But I want to&nbsp;achieve this WITHOUT adding any file - just an empty directory.&nbsp;<br>\r\n<br>\r\nCalling the functions&nbsp;<br>\r\n<span style=\"font-size:13px\">&nbsp;&nbsp;&nbsp;&nbsp; AddOrUpdateDirectoryImpl() <br>\r\n</span>always results in&nbsp;<br>\r\n&nbsp;&nbsp;&nbsp; <span style=\"font-size:13px;color:#2b91af\"><span style=\"font-size:13px;color:#2b91af\">String</span></span><span style=\"font-size:13px\">[] filenames = System.IO.</span><span style=\"font-size:13px;color:#2b91af\"><span style=\"font-size:13px;color:#2b91af\">Directory</span></span><span style=\"font-size:13px\">.GetFiles(directoryName);</span>and this call throws an exception.<br>\r\n<br>\r\nPerhaps another flag in&nbsp;<br>\r\n&nbsp;&nbsp; <span style=\"font-size:13px;color:#2b91af\"><span style=\"font-size:13px;color:#2b91af\">AddOrUpdateAction</span></span>culd solve this problem:&nbsp;<br>\r\n<span style=\"font-size:13px\">\r\n<p>&nbsp;</p>\r\n</span>\r\n<p><span style=\"font-size:13px;color:#0000ff\"><span style=\"font-size:13px;color:#0000ff\">&nbsp;&nbsp; enum</span></span><span style=\"font-size:13px\"> </span><span style=\"font-size:13px;color:#2b91af\"><span style=\"font-size:13px;color:#2b91af\">AddOrUpdateAction<br>\r\n&nbsp; </span></span><span style=\"font-size:13px\">{<br>\r\n&nbsp;&nbsp;&nbsp;&nbsp; AddOnly = 0,<br>\r\n&nbsp;&nbsp;&nbsp; AddOrUpdate<br>\r\n&nbsp;&nbsp;&nbsp; AddIOAccess<br>\r\n&nbsp;&nbsp; }<br>\r\n..<br>\r\n<br>\r\nif(&nbsp;<span style=\"font-size:13px\">action !=&nbsp;AddIOAccess )<br>\r\n<span style=\"font-size:13px;color:#2b91af\"><span style=\"font-size:13px;color:#2b91af\">&nbsp;&nbsp;&nbsp;&nbsp;String</span></span><span style=\"font-size:13px\">[] filenames = System.IO.</span><span style=\"font-size:13px;color:#2b91af\"><span style=\"font-size:13px;color:#2b91af\">Directory</span></span><span style=\"font-size:13px\">.GetFiles(directoryName);\r\n<p>&nbsp;</p>\r\n</span></span></span></p>\r\n&nbsp;...<br>\r\n<br>\r\nwould be the way?\r\n",
    "PostedDate": "2008-08-25T04:50:25.023-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "113442",
    "ThreadId": "34205",
    "Html": "Hmm, ok.&nbsp; I understand what you are asking for now.&nbsp; You were the person that opened up workitem&nbsp;5671.&nbsp; <br>\r\n<a href=\"http://www.codeplex.com/DotNetZip/WorkItem/View.aspx?WorkItemId=5671\">http://www.codeplex.com/DotNetZip/WorkItem/View.aspx?WorkItemId=5671</a><br>\r\n<br>\r\nI wasn't clear on the scenario.&nbsp; Still I would like to better understand the &quot;why&quot;. <br>\r\nCan you tell me more - like what is the purpose of having an empty directory in the zipfile? <br>\r\n<br>\r\nI haven't yet looked at what it would take to make this possible. I'll have to think about your idea with the additional flag in that enum. <br>\r\n",
    "PostedDate": "2008-08-25T07:28:14.367-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "113448",
    "ThreadId": "34205",
    "Html": "Well, we use a zip-file to export and import data from and to our system. <br>\r\nThis system uses a&nbsp; predefined folder-structure, where&nbsp;all&nbsp;folder have to exist, no matter if files are stored within or not. <br>\r\nAll later access to this structure expects the existace of these folder.<br>\r\n<br>\r\nSo I need the ability to create these folder even if they are empty.<br>\r\n",
    "PostedDate": "2008-08-25T07:41:28.707-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "113485",
    "ThreadId": "34205",
    "Html": "ok, a simple enough idea.<br>\r\nI will look into it. <br>\r\n<br>\r\nNot sure a new flag is the right solution.<br>\r\nI will look.<br>\r\n",
    "PostedDate": "2008-08-25T08:56:25.323-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "113632",
    "ThreadId": "34205",
    "Html": "<p>I added a method on ZipFile - AddDirectoryByName().</p>\r\n<p>You can find this in the v1.6 preview release, available now. </p>\r\n<p>Let me know if it works for you. </p>\r\n<p>&nbsp;</p>\r\n",
    "PostedDate": "2008-08-25T17:30:02.24-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "113730",
    "ThreadId": "34205",
    "Html": "Thanks a lot, works perfect for me now.\r\n",
    "PostedDate": "2008-08-26T03:08:49.343-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  }
]