public boolean copyDir(Path sourcePath, Path destPath, boolean needCmRecycle) throws MetaException {
    try {
      if (needCmRecycle) {
        cm.recycle(sourcePath, RecycleType.COPY, true);
      }
      FileSystem srcFs = getFs(sourcePath);
      FileSystem destFs = getFs(destPath);
      // TODO: this operation can be expensive depending on the size of data. 
      return FileUtils.copy(srcFs, sourcePath, destFs, destPath, false, false, conf);
    } catch (Exception ex) {
      MetaStoreUtils.throwMetaException(ex);
    }
    return false;
  }
Get table name in cat.db.table format.
@param table table object
@return fully qualified name.
standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/metastore/Warehouse.java