title: "Illegal characters in path" error using wildcards with Directory.GetFiles
body: <p>I have a directory with multiple sub directories that contain .doc files. Example:</p>
  
  <pre><code>C:\Users\user\Documents\testenviroment\Released\test0.doc
  C:\Users\user\Documents\testenviroment\Debug\test1.doc
  C:\Users\user\Documents1\testenviroment\Debug\test2.doc
  C:\Users\user\Documents1\testenviroment\Released\test20.doc
  </code></pre>
  
  <p>I want to get all the <code>test*.doc</code> files under all Debug folders. I tried:</p>
  
  <pre><code>string[] files = Directory.GetFiles(@"C:\Users\user", "*Debug\\test*.doc",
      SearchOption.AllDirectories);
  </code></pre>
  
  <p>And it gives me an "Illegal characters in path" error.</p>
  
  <p>If I try:</p>
  
  <pre><code>string[] files = Directory.GetFiles(@"C:\Users\user", "\\Debug\\test*.doc",
      SearchOption.AllDirectories); 
  </code></pre>
  
  <p>I get a different error: "Could not find a part of the path C:\Users\user\Debug".</p>