[
  {
    "Id": "270634",
    "ThreadId": "79042",
    "Html": "<p>Hi Cheeso,</p>\r\n<p>&nbsp;&nbsp;&nbsp; I'm using the exclusion feature and its working perfectly except for when I try to exclude a file or folder with spaces. For example,</p>\r\n<p>I'm trying to do this:</p>\r\n<p>&nbsp;</p>\r\n<div style=\"color:Black;background-color:White\">\r\n<pre><span style=\"color:Blue\">using</span> (ZipFile zip = <span style=\"color:Blue\">new</span> ZipFile())<br>{<br>    zip.UpdateSelectedFiles(<span style=\"color:#a31515\">&quot;name != C:\\\\folder\\\\File 1&quot;</span>, <span style=\"color:#a31515\">&quot;C:\\\\Folder&quot;</span>, <span style=\"color:#a31515\">&quot;Folder&quot;</span>, <span style=\"color:Blue\">true</span>);<br>}<br></pre>\r\n</div>\r\n<p>&nbsp;</p>\r\n<p>but it seems to be getting confused by the space and throws this exception:</p>\r\n<p>System.ArgumentException: '1'<br>at Ionic.FileSelector._ParseCriterion(String s)<br>at Ionic.FileSelector..ctor(String selectionCriteria)<br>at Ionic.Zip.ZipFile._AddOrUpdateSelectedFiles(String selectionCriteria, String directoryOnDisk, String directoryPathInArchive, Boolean recurseDirectories, Boolean wantUpdate)<br>at Ionic.Zip.ZipFile.UpdateSelectedFiles(String selectionCriteria, String directoryOnDisk, String directoryPathInArchive, Boolean recurseDirectories)</p>\r\n<p>I tried putting quotes around the path like this:<span style=\"color:Blue\">&nbsp;</span></p>\r\n<p><span style=\"color:Blue\">\r\n<div style=\"color:Black;background-color:White\">\r\n<pre><span style=\"color:Blue\">using</span> (ZipFile zip = <span style=\"color:Blue\">new</span> ZipFile())<br>{<br>    zip.UpdateSelectedFiles(<span style=\"color:#a31515\">&quot;name != \\&quot;C:\\\\folder\\\\File 1\\&quot;&quot;</span>, <span style=\"color:#a31515\">&quot;C:\\\\Folder&quot;</span>, <span style=\"color:#a31515\">&quot;Folder&quot;</span>, <span style=\"color:Blue\">true</span>);<br>}<br></pre>\r\n</div>\r\n</span></p>\r\n<pre>but it threw the same exception. Any way around this?<br><br>Thanks</pre>",
    "PostedDate": "2009-12-24T10:58:58.88-08:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "270636",
    "ThreadId": "79042",
    "Html": "<p>Yes, there's a way around the problem.&nbsp; To specify a name pattern that includes spaces, use single quotes around the pattern.</p>\r\n<p>This is in <a href=\"http://cheeso.members.winisp.net/DotNetZipHelp/html/4469abe7-8fa4-101e-975d-305d2fd0affb.htm\">the documentation</a>.</p>",
    "PostedDate": "2009-12-24T11:09:00.583-08:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "270971",
    "ThreadId": "79042",
    "Html": "<p>Well thats easy enough. I don't know why i didn't think of that.</p>\r\n<p>thanks Cheeso</p>",
    "PostedDate": "2009-12-27T08:11:52.103-08:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  }
]