title: Is there a way to fetch all directories and files matching a pattern with wildcards recursively in C#?
body: <p>I am looking for a library that allows me to take something similar to this:</p>
  <pre><code>./*
  ./*/*.*
  ./**
  ./**/*.*
  ./*.cs
  ./folder1/*.png
  </code></pre>
  <p>Then i would need to pass it to a method which scans the filesystem and returns these paths:</p>
  <pre><code>C:\folder1, C:\folder2, C:\folder3
  C:\folder1\file.cs,C:\folder1\test.dll,[...], C:\folder2\image.png, [...]
  C:\folder1, C:\folder1\results, C:\folder2, [...]
  C:\file1.cs, C:\file2.cs, C:\file3.cs
  C:\folder1\image1.png, C:\folder1\image2.png, [...]
  </code></pre>
  <p>I am aware that <code>Directory.GetFiles()</code> and <code>Directory.GetDirectories</code> exist and that they accept a filter, but i need one method that does this recursively and flexibly and returns a set of absolute paths.</p>