Ejemplo n.º 1
0
 private void deleteContents(File path) {
   if (path.exists()) {
     for (File file : path.listFiles()) {
       if (file.isDirectory()) {
         deleteContents(file);
       } else {
         attemptToDelete(file);
       }
     }
   }
 }
Ejemplo n.º 2
0
 public void deleteRepo() {
   deleteContents(repoDir);
 }