[
  {
    "Id": "897290",
    "ThreadId": "390807",
    "Html": "\r\n<p>Hello -</p>\r\n<p>In my application I am creating pdf files in a folder and I am trying to zip the folder using DotNetZip. Following is the code I am using to add the pdf files in the zip.</p>\r\n<p>&nbsp;</p>\r\n<pre>zip.AddFile(HttpContext.Current.Server.MapPath(&quot;~\\\\Letters\\\\&quot; &#43; objEmployee.emp_id.ToString() &#43; &quot;.pdf&quot;));   </pre>\r\n<p>&nbsp;</p>\r\n<p>I am able to download the zip file, but my problem is that my zip file contains entire folder structure (inetpub\\wwwroot\\empcomp\\letters) instead of just having just the Letters folder.</p>\r\n<p>Is there any way to remove all the empty folders inetpub, wwwroot, empcomp etc?</p>\r\n<p>&nbsp;</p>\r\n<p>Thanks</p>\r\n<p>&nbsp;</p>\r\n",
    "PostedDate": "2012-08-08T15:54:01.917-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "909189",
    "ThreadId": "390807",
    "Html": "<p>I did the following:</p>\r\n<p>\r\n<div style=\"color: black; background-color: white;\">\r\n<pre>archivoZip.AddFiles(rutaArchivos, <span style=\"color: blue;\">false</span>, <span style=\"color: #a31515;\">\"Archivos\"</span>);\r\n</pre>\r\n</div>\r\n</p>\r\n<p>This is working for me. I get only the files in the folders.</p>\r\n<p>I hope this help you.</p>",
    "PostedDate": "2012-09-06T08:01:15.363-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  }
]