If file size has changed, or if destination does not exist yet, copy it. @param local Path to the local file to copy to the cluster. @param destination Destination path on the cluster. @throws IOException If the copy failed.
(Path local, Path destination)
| 47 | * @throws IOException If the copy failed. |
| 48 | */ |
| 49 | public void update(Path local, Path destination) throws IOException { |
| 50 | if (! exists(destination) || ! sameSize(local, destination)) { |
| 51 | copyFromLocalFile(local, destination, true); |
| 52 | } |
| 53 | } |
| 54 | |
| 55 | public void copyFromLocalFile(Path local, Path destination) throws IOException { |
| 56 | copyFromLocalFile(local, destination, true); |
no test coverage detected