(File file)
| 31 | } |
| 32 | |
| 33 | public static File createFile(File file) throws IOException { |
| 34 | if (file.exists()) { |
| 35 | return file; |
| 36 | } |
| 37 | if (!file.createNewFile()) { |
| 38 | throw new IOException("Could not create File: " + file.getPath()); |
| 39 | } |
| 40 | return file; |
| 41 | } |
| 42 | |
| 43 | public static boolean deleteDirectory(File dir) { |
| 44 | if (dir.isDirectory()) { |
no outgoing calls
no test coverage detected