[
  {
    "Id": "135378",
    "ThreadId": "40827",
    "Html": "Hello,<br>\r\nI just downloaded your DotNetZip library and I'm trying to zip mp3 files for users to download. When I call method &quot;AddFile&quot; and the zip file is created, it includes the whole directory structure. Is there a way that I can only add the specific files without saving the whole directory structure?<br>\r\n<br>\r\nThank you,<br>\r\n-Alex\r\n",
    "PostedDate": "2008-11-25T19:16:31.593-08:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "135381",
    "ThreadId": "40827",
    "Html": "Hey Alex! <br>\r\nGlad you're finding DotNetZip useful.  <br>\r\n<br>\r\nThe question you asked is a FAQ. Here are 3 examples, in each case the code statement adds a file to an archive.<br>\r\n<br>\r\nThe directory of the file in the archive will reflect the directory of the file on the disk: <br>\r\n<pre>  zip.AddFile(@&quot;c:\\Directory\\subdir\\file.zzz&quot;);\r\n</pre>\r\n<br>\r\nThe file will be added into the top-level directory in the archive: <br>\r\n<pre>  zip.AddFile(@&quot;c:\\Directory\\subdir\\file.zzz&quot;, &quot;&quot;);\r\n</pre>\r\n<br>\r\nThe file will be added into the directory &quot;files&quot; in the archive: <br>\r\n<pre>  zip.AddFile(@&quot;c:\\Directory\\subdir\\file.zzz&quot;, &quot;files&quot;);\r\n</pre>\r\n",
    "PostedDate": "2008-11-25T19:30:31.18-08:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  }
]