List of utility methods to do File Find
void | findJavaFiles(File dir, Collection Recursively finds all the java files in the specified directory and adds them all to the given collection. File[] javaFiles = dir.listFiles(JAVA_FILTER); for (File javaFile : javaFiles) { filenames.add(javaFile.getAbsolutePath()); File[] dirs = dir.listFiles(DIR_FILTER); for (File dir1 : dirs) { findJavaFiles(dir1, filenames); |
File[] | findJavaFiles(File folder) find Java Files return findFiles(folder, true, ".java"); |