MCPcopy Create free account
hub / github.com/FongMi/CatVodSpider / clear

Method clear

app/src/main/java/com/github/catvod/utils/Path.java:131–135  ·  view source on GitHub ↗
(File dir)

Source from the content-addressed store, hash-verified

129 }
130
131 public static void clear(File dir) {
132 if (dir == null) return;
133 if (dir.isDirectory()) for (File file : list(dir)) clear(file);
134 if (dir.delete()) SpiderDebug.log("Deleted:" + dir.getAbsolutePath());
135 }
136
137 public static File create(File file) {
138 try {

Callers 1

moveMethod · 0.95

Calls 3

listMethod · 0.95
logMethod · 0.95
deleteMethod · 0.80

Tested by

no test coverage detected