MCPcopy Create free account
hub / github.com/danoon2/Boxedwine / deleteDir

Method deleteDir

tools/BoxedWineRunner/src/boxedwine/org/Main.java:126–138  ·  view source on GitHub ↗
(File file)

Source from the content-addressed store, hash-verified

124 }
125
126 public static void deleteDir(File file) throws IOException {
127 if (file.isDirectory()) {
128 File[] entries = file.listFiles();
129 if (entries != null) {
130 for (File entry : entries) {
131 deleteDir(entry);
132 }
133 }
134 }
135 if (!file.delete()) {
136 file.deleteOnExit();
137 }
138 }
139
140 public static String[] getLines(String path) {
141 try {

Callers 1

runTestMethod · 0.95

Calls 1

isDirectoryMethod · 0.80

Tested by

no test coverage detected