private static void moveFileOrDir(FileSystem fs, FileStatus file, Path dst) throws IOException,
      HiveException {
    Path srcFilePath = file.getPath();
    String fileName = srcFilePath.getName();
    Path dstFilePath = new Path(dst, fileName);
    if (file.isDir()) {
      renameOrMoveFiles(fs, srcFilePath, dstFilePath);
    } else {
      moveFile(fs, srcFilePath, dst, fileName);
    }
  }
Rename src to dst, or in the case dst already exists, move files in src to dst. If there is an
existing file with the same name, the new file's name will be appended with "_1", "_2", etc.

@param fs
         the FileSystem where src and dst are on.
@param src
         the src directory
@param dst
         the target directory
@throws IOException
ql/src/java/org/apache/hadoop/hive/ql/exec/Utilities.java