List of utility methods to do Directory Visit
void | recursivelyAddFiles(Collection recursively Add Files File[] list = dir.listFiles(filter); if (list != null) { for (File file : list) { files.add(file); File[] dirs = dir.listFiles(new DirectoryFileFilter()); if (dirs != null) { ... |
void | visitAllFiles(File dir, Visitor visit All Files File[] list = dir.listFiles(); if (list != null) { for (File sub : list) { if (sub.isFile()) visitor.visit(sub); else visitAllFiles(sub, visitor); |
void | visitAllSubDirectories(File dir, Visitor visit All Sub Directories File[] list = dir.listFiles(); if (list != null) { for (File sub : list) { if (sub.isDirectory()) { visitor.visit(sub); visitAllSubDirectories(sub, visitor); |