title: Java 7 nio list directory with wildcard
body: <p>I'd like to find a file in a directory using wildcard. I have this in Java 6 but want to convert the code to Java 7 NIO:</p>
  
  <pre><code> File dir = new File(mydir); 
   FileFilter fileFilter = new WildcardFileFilter(identifier+".*");
   File[] files = dir.listFiles(fileFilter);
  </code></pre>
  
  <p>There is no <code>WildcardFileFilter</code>, and I've played around a bit with globs.</p>