Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public boolean deleteRecursive(File path) {
- if (path.isDirectory()) {
- for (File file : path.listFiles()) {
- if (!deleteRecursive(file))
- return false;
- }
- }
- return file.delete();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement