Copies a file to another target. @param target target @throws IOException I/O exception
(final IOFile target)
| 335 | * @throws IOException I/O exception |
| 336 | */ |
| 337 | public void copyTo(final IOFile target) throws IOException { |
| 338 | // create parent directory of target file |
| 339 | target.parent().md(); |
| 340 | Files.copy(toPath(), target.toPath(), StandardCopyOption.REPLACE_EXISTING); |
| 341 | } |
| 342 | |
| 343 | @Override |
| 344 | public boolean eq(final IO io) { |