[
  {
    "Id": "486006",
    "ThreadId": "225176",
    "Html": "<p>Hi Cheeso,</p>\r\n<p>In my backup program I'm trying to zip the entire contents of my D:\\ Drive using the ZipFile.UpdateSelectedFiles method but for some reason its only zipping the contents of the working directory. If I use a folder inside the drive the code works perfectly, the problem ONLY happens when I use the root. Here is the code I'm using:</p>\r\n<p>&nbsp;</p>\r\n<div style=\"color:black;background-color:white\">\r\n<pre><div style=\"color:black;background-color:white\"><pre>ZipFile zip = <span style=\"color:blue\">new</span> ZipFile(fileName);<br>{<br>    zip.UpdateSelectedFiles(exclusions, <span style=\"color:#a31515\">&quot;D:\\\\&quot;, &quot;</span>D:\\\\&quot; <span style=\"color:blue\">true</span>);<br>}<br><br><strong><br></strong>Any help would be appreciated.<strong><br></strong></pre>\r\n</div>\r\n</pre>\r\n</div>",
    "PostedDate": "2010-08-28T10:42:37.84-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "486058",
    "ThreadId": "225176",
    "Html": "<p>if this is the exact code i think you're missing a comma zip.UpdateSelectedFiles(exclusions, <span style=\"color:#a31515\">&quot;D:\\\\&quot;, &quot;</span>D:\\\\&quot;<span style=\"text-decoration:underline\"><strong>,</strong></span> <span style=\"color:blue\">true</span>);</p>",
    "PostedDate": "2010-08-28T21:49:17.73-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "486059",
    "ThreadId": "225176",
    "Html": "<p>Yes I'm sorry that's a typo. My actual code has the comma</p>",
    "PostedDate": "2010-08-28T21:58:44.087-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "494669",
    "ThreadId": "225176",
    "Html": "<p>Does anyone have a suggestion on this?</p>",
    "PostedDate": "2010-09-16T14:27:11.143-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "495430",
    "ThreadId": "225176",
    "Html": "<p>You could just do a scan of the root directory (top-level only) and do a foreach on each directory you find. &nbsp;Then you can get around the problem, at the very least.</p>",
    "PostedDate": "2010-09-18T09:01:45.983-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "495743",
    "ThreadId": "225176",
    "Html": "<p>Yes, that's the way I'm doing it right now the only problem with that is when I want to exclude a sub directory. Alternatively I can recurse through the sub directories but i was just trying to avoid writing that.</p>",
    "PostedDate": "2010-09-19T19:41:57.667-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "496940",
    "ThreadId": "225176",
    "Html": "This discussion has been copied to a work item. Click <a href=\"http://dotnetzip.codeplex.com/workitem/11988\">here</a> to go to the work item and continue the discussion.",
    "PostedDate": "2010-09-22T04:51:55.637-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  }
]