(File from, File to)
| 96 | } |
| 97 | |
| 98 | public void copyFile(File from, File to) throws IOException { |
| 99 | createDir(to.getParentFile()); |
| 100 | |
| 101 | IO.INSTANCE.copy(new FileInputStream(from), new FileOutputStream(to), AutoClose.INPUT_OUTPUT); |
| 102 | to.setLastModified(from.lastModified()); |
| 103 | } |
| 104 | |
| 105 | public void createDir(File dir) { |
| 106 | if (!dir.exists()) { |