[
  {
    "Id": "629276",
    "ThreadId": "261786",
    "Html": "\r\n<p>Whenever I use the following code:</p>\r\n<p>using (ZipFile zip = new ZipFile())<br>\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br>\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; zip.AddFile(Server.MapPath(&quot;~//Images//Thumbs//1.png&quot;));<br>\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; zip.AddFile(Server.MapPath(&quot;~//Images//Thumbs//2.png&quot;));<br>\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; zip.AddFile(Server.MapPath(&quot;~//Images//Thumbs//3.png&quot;));<br>\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; zip.Save(Server.MapPath(&quot;~//Images//Package.zip&quot; ));<br>\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</p>\r\n<p>to create a zip archive it produces a zip file but places the root files inside the full path of folders.</p>\r\n<p>How can I create a zip archive and remove all the containing folders?</p>\r\n<p>Thanks in advance.</p>\r\n",
    "PostedDate": "2011-06-17T08:04:33.723-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "629476",
    "ThreadId": "261786",
    "Html": "<p>This is a FAQ.</p>\r\n<p>Use the AddFile overload that accepts a second parameter, a string.&nbsp; Pass \"\" (the empty string).</p>\r\n<p>Check the documentation or the examples page on this website - the idea is explained in some detail.</p>",
    "PostedDate": "2011-06-17T23:00:23.29-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  }
]