[
  {
    "Id": "408091",
    "ThreadId": "199403",
    "Html": "<div style=\"color:Black;background-color:White\">\r\n<pre><span style=\"color:Blue\"><pre>&nbsp;</pre>\r\n</span></pre>\r\n</div>\r\n<p>Hello,</p>\r\n<p>I try to unzip files that have been stored with relative path but it seems that the base directory parameters used in the ZipEntry.Extract(BaseDirectory) is not working as i supposed it should</p>\r\n<p>I have a Zip Test1.zip that Have two files inside it</p>\r\n<p>\\test\\file1.jpg</p>\r\n<p>\\test\\file2.jpg</p>\r\n<p>And I want to extract these files to the D:\\testing-directory</p>\r\n<p>So I wrote the following code</p>\r\n<pre>using (ZipFile zip = ZipFile.Read(@&quot;D:\\test.zip&quot;))\r\n{\r\n\tforeach (ZipEntry item in zip)\r\n\t{\r\n\t\titem.Extract(@&quot;D:\\testing-directory&quot;);\r\n\t}\r\n}</pre>\r\n<p>but my files are always written in the d:\\test folder</p>\r\n<p>I also try the zip.ExtractAll((@&quot;D:\\testing-directory&quot;); with the same issue</p>\r\n<p>Do you know why ?</p>\r\n<p>Thanks</p>\r\n<p>&nbsp;</p>",
    "PostedDate": "2010-02-26T02:39:57.917-08:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "408151",
    "ThreadId": "199403",
    "Html": "This discussion has been copied to a work item. Click <a href=\"http://dotnetzip.codeplex.com/WorkItem/View.aspx?WorkItemId=10329\">here</a> to go to the work item and continue the discussion.",
    "PostedDate": "2010-02-26T03:17:06-08:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "408158",
    "ThreadId": "199403",
    "Html": "<p>yes.&nbsp; if your zip file entries contain a leading slash, then they are being placed into the root directory.&nbsp; The convention in zip files is to have no leading slash.</p>\r\n<p>It seems there are at least two problems:</p>\r\n<ol>\r\n<li>the program or tool you used to create the zip files has inserted a leading slash.&nbsp; </li>\r\n<li>DotNetZip does not correctly handle the leading slash well when extracting</li>\r\n</ol>\r\n<p>I can fix the latter. Please upload your zip file to the workitem.&nbsp;</p>\r\n<p>If you used DotNetZip to produce the zip file, then I will have to also fix the first problem, too. In that case, please post the code you used to produce the zip file.</p>",
    "PostedDate": "2010-02-26T03:18:48.223-08:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "408355",
    "ThreadId": "199403",
    "Html": "<p>Ok I will swithed to the new work item</p>",
    "PostedDate": "2010-02-26T05:19:28.41-08:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  }
]