I have a list of directories that I'm using in a selectMenu in a webpage.
The list contains all sub-directories under a certain directory, retrieved using the below java code..
File directory = new File("C:\\myHomeDirectory");
myDirectories = directory.listFiles((FileFilter) DirectoryFileFilter.DIRECTORY);
I want to filter the list of myDirectories to exclude subdirectories which do NOT contain a certain file(say called testFolder). In other words, I want myDirectories to include only files that have a subfolder called testForder. How to do that?