[
  {
    "Id": "980925",
    "ThreadId": "427826",
    "Html": "\r\n<p>Hello-</p>\r\n<p>I am using the ZipFile AddDirectory() methods to build a ZIP file. Is there a way to trap the addition of every folder and file inside that directory structure BEFORE it is added to the archive? &nbsp;Or is there a way to specify &quot;exclusions&quot;?</p>\r\n<p>For example, to zip &quot;C:\\MyDocs&quot; entirely, I can use this:</p>\r\n<p>ZipFile zip = new ZipFile();<br>\r\nzip.AddDirectory(&quot;C:\\MyDocs&quot;, &quot;C:\\MyDocs&quot;);</p>\r\n<p>But, inside C:\\MyDocs, I want to<br>\r\nskip folder C:\\MyDocs\\Downloads\\ (recursively)<br>\r\nand skip file C:\\MyDocs\\Temp\\readme.txt.</p>\r\n<p>Is there a way to do that using the zip.AddDirectory() methods?</p>\r\n<p>Thank you in advance for any suggestions.</p>\r\n<p>RSloan</p>\r\n",
    "PostedDate": "2012-12-27T11:13:40.9-08:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  }
]