(final File file, boolean deleteOld)
| 610 | } |
| 611 | |
| 612 | public static boolean createFile(final File file, boolean deleteOld) { |
| 613 | if (file == null) return false; |
| 614 | if (deleteOld && file.exists() && !file.delete()) return false; |
| 615 | if (!createOrExistsDir(file.getParentFile())) return false; |
| 616 | try { |
| 617 | return file.createNewFile(); |
| 618 | } catch (IOException e) { |
| 619 | e.printStackTrace(); |
| 620 | return false; |
| 621 | } |
| 622 | } |
| 623 | |
| 624 | public static File createFile(File zipdir, File zipfile) { |
| 625 | if (!zipdir.exists()) { |
no test coverage detected