public static String escapePathName(String path) {
    return escapePathName(path, null);
  }
Rename a file.  Unlike {@link FileSystem#rename(Path, Path)}, if the destPath already exists
and is a directory, this will NOT move the sourcePath into it.  It will throw an IOException
instead.
@param srcFs file system src paths are on
@param destFs file system dest paths are on
@param srcPath source file or directory to move
@param destPath destination file name.  This must be a file and not an existing directory.
@return result of fs.rename.
@throws IOException if fs.rename throws it, or if destPath already exists.
standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/metastore/utils/FileUtils.java