title: Using FastZip to zip a directory, and only include certain file types ( file filtering)
body: <p>I wonder whether there is a way to use <a href="http://community.sharpdevelop.net/forums/p/4007/11539.aspx" rel="nofollow noreferrer">fastzip</a> to zip a directory, but include only certain file types. I am thinking about using something like:</p>
  
  <pre><code>    public static void ZipFiles(string DirectoryToZip, string ZipedFile, string fileFilter, string folderFilter) {
          FastZip fz = new FastZip();
          fz.CreateEmptyDirectories = true;
          fz.CreateZip(ZipedFile, DirectoryToZip, true, fileFilter, folderFilter);
      }
  </code></pre>
  
  <p>The only problem is that the <code>fileFilter</code> is given in <code>string</code>, not in <code>arrays</code>. </p>
  
  <p>Any ideas?</p>