MCPcopy Index your code
hub / github.com/BruceEckel/OnJava8-Examples / processDirectoryTree

Method processDirectoryTree

onjava/ProcessFiles.java:40–47  ·  view source on GitHub ↗
(File root)

Source from the content-addressed store, hash-verified

38 }
39 }
40 public void
41 processDirectoryTree(File root) throws IOException {
42 PathMatcher matcher = FileSystems.getDefault()
43 .getPathMatcher("glob:**/*.{" + ext + "}");
44 Files.walk(root.toPath())
45 .filter(matcher::matches)
46 .forEach(p -> strategy.process(p.toFile()));
47 }
48}

Callers 1

startMethod · 0.95

Calls 2

walkMethod · 0.80
processMethod · 0.65

Tested by

no test coverage detected