示例#1
0
  /** @param args */
  public static void main(String[] args) {
    // TODO Auto-generated method stub
    PPrint.pprint(Directory.walk("src/thinking").dirs);

    for (File file : Directory.local("src/thinking/java/space18", "D.*")) {
      System.out.println(file);
    }
  }
示例#2
0
 public void processDirectoryTree(File root) throws IOException {
   for (File file : Directory.walk(root.getAbsolutePath(), ".*\\." + ext))
     strategy.process(file.getCanonicalFile());
 }