question: public static List < File > findFilesInDir ( File directory , FilenameFilter filter ) { Vector < File > files = new Vector < File > ( ) ; File [ ] entries = directory . listFiles ( ) ; for ( File entry : entries ) { if ( filter == null || filter . accept ( directory , entry . getName ( ) ) ) { files . add ( entry ) ; } if ( entry . isDirectory ( ) ) { files . addAll ( findFilesInDir ( entry , filter ) ) ; } } return files ; }
target:  Given a java.io.File representing a directory, list all the files underneath that directory matching the given FilenameFilter.