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

Method main

files/TreeWatcher.java:35–43  ·  view source on GitHub ↗
(String[] args)

Source from the content-addressed store, hash-verified

33 }
34 }
35 public static void
36 main(String[] args) throws Exception {
37 Directories.refreshTestDir();
38 Directories.populateTestDir();
39 Files.walk(Paths.get("test"))
40 .filter(Files::isDirectory)
41 .forEach(TreeWatcher::watchDir);
42 PathWatcher.delTxtFiles();
43 }
44}
45/* Output:
46deleting test\bag\foo\bar\baz\File.txt

Callers

nothing calls this directly

Calls 5

refreshTestDirMethod · 0.95
populateTestDirMethod · 0.95
delTxtFilesMethod · 0.95
walkMethod · 0.80
getMethod · 0.65

Tested by

no test coverage detected