private static File [ ] listFiles ( final File srcDir , final FileFilter filter ) { final File [ ] files ; if ( filter == null ) { files = srcDir . listFiles ( ) ; } else { files = srcDir . listFiles ( filter ) ; } return files ; }
List all files for a directory .