(Path local, Path destination)
| 99 | } |
| 100 | |
| 101 | private boolean sameSize(Path local, Path destination) throws IOException { |
| 102 | FileSystem fs1 = FileSystem.getLocal(configuration); |
| 103 | FileSystem fs2 = destination.getFileSystem(configuration); |
| 104 | |
| 105 | return fs1.getFileStatus(local).getLen() == fs2.getFileStatus(destination).getLen(); |
| 106 | } |
| 107 | } |