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

Method refreshTestDir

files/Directories.java:19–24  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

17 return Paths.get("test", String.join(sep, parts));
18 }
19 static void refreshTestDir() throws Exception {
20 if(Files.exists(test))
21 RmDir.rmdir(test);
22 if(!Files.exists(test))
23 Files.createDirectory(test);
24 }
25 public static void
26 main(String[] args) throws Exception {
27 refreshTestDir();

Callers 4

mainMethod · 0.95
mainMethod · 0.95
mainMethod · 0.95
mainMethod · 0.95

Calls 1

rmdirMethod · 0.95

Tested by

no test coverage detected