title: Finding subdirs matching a given name
body: <p>I need to find dirs having a given name (I'll call it "fixedname") under a root dir.
  I have the following dir structure:</p>
  
  <pre><code>- rootdir
  -- someName1
  --- fixedName
  -- somename2
  --- fixedName
  </code></pre>
  
  <p>Under the root dir there are some dirs which name is unknow, and under those dirs there are my target dirs. <strong>The result of my "find" should be: [rootDir/someName1/fixedName, rootDir/someName2/fixedName]</strong>  </p>
  
  <p>I tried using <a href="http://commons.apache.org/io/api-1.4/org/apache/commons/io/FileUtils.html" rel="nofollow">Commons FileUtils</a>, specifically the method <a href="http://commons.apache.org/io/api-1.4/org/apache/commons/io/FileUtils.html#listFiles%28java.io.File,%20org.apache.commons.io.filefilter.IOFileFilter,%20org.apache.commons.io.filefilter.IOFileFilter%29" rel="nofollow">listfiles</a>, doing the following:</p>
  
  <pre><code>final File ROOTDIR = new File("/rootdir");
  IOFileFilter nameFilter = new NameFileFilter("fixedName");
  Collection&lt;File&gt; files = FileUtils.listFiles(ROOTDIR, TrueFileFilter.TRUE, nameFilter);
  </code></pre>
  
  <p>but it doesn't work, since the subdir walk stops at the level of someName* dirs. <strong>I could write a custom method, but I was wondering whether one can achieve what I need using Commons FileUtils or the Java API</strong> (using some high level function, I mean)</p>