public File [ ] getFiles ( ) { final File [ ] files = directory . listFiles ( filter ) ; if ( files == null ) { return new File [ 0 ] ; } else { return files ; } }
Returns a list of all matching files .