(File file)
| 124 | } |
| 125 | |
| 126 | public static void deleteDir(File file) throws IOException { |
| 127 | if (file.isDirectory()) { |
| 128 | File[] entries = file.listFiles(); |
| 129 | if (entries != null) { |
| 130 | for (File entry : entries) { |
| 131 | deleteDir(entry); |
| 132 | } |
| 133 | } |
| 134 | } |
| 135 | if (!file.delete()) { |
| 136 | file.deleteOnExit(); |
| 137 | } |
| 138 | } |
| 139 | |
| 140 | public static String[] getLines(String path) { |
| 141 | try { |