public static boolean isEmptyPath(Configuration job, Path dirPath) throws IOException {
    FileStatus[] fStats = listNonHiddenFileStatus(job, dirPath);
    if (fStats.length > 0) {
      return false;
    }
    return true;
  }
Performs a ContentSummary lookup over a set of paths using 1 or more
threads. The 'summary' argument is directly modified.

@param ctx
@param pathNeedProcess
@param work
@param summary
@param executor
@throws IOException
ql/src/java/org/apache/hadoop/hive/ql/exec/Utilities.java