code: public static boolean copy(FileSystem srcFS, Path src, 
                               FileSystem dstFS, Path dst, 
                               boolean deleteSource,
                               Configuration conf) throws IOException {
      return copy(srcFS, src, dstFS, dst, deleteSource, true, conf);
    }
docs: Copy files between FileSystems.