SHOW:
|
|
- or go back to the newest paste.
| 1 | - | public booleab deleteRecursive(File path) {
|
| 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 | } |