Advertisement
Guest User

Untitled

a guest
Mar 5th, 2014
697
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public boolean deleteRecursive(File path) {
  2.     if (path.isDirectory()) {
  3.         for (File file : path.listFiles()) {
  4.             if (!deleteRecursive(file))
  5.                 return false;
  6.         }
  7.     }
  8.     return file.delete();
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement