(File dir)
| 21 | private static final char[] hexArray = "0123456789ABCDEF".toCharArray(); |
| 22 | |
| 23 | public static File createDir(File dir) throws IOException { |
| 24 | if (dir.exists()) |
| 25 | return dir; |
| 26 | |
| 27 | if (!dir.mkdirs()) { |
| 28 | throw new IOException("Could not create Directory: " + dir.getPath()); |
| 29 | } |
| 30 | return dir; |
| 31 | } |
| 32 | |
| 33 | public static File createFile(File file) throws IOException { |
| 34 | if (file.exists()) { |
no outgoing calls
no test coverage detected