@Override
    public String toString() {
      StringBuilder sb = new StringBuilder();
      sb.append("Path: " + dirPath);
      sb.append("; ");
      sb.append("Files: { ");
      for (FileStatus fStatus : files) {
        sb.append(fStatus);
        sb.append(", ");
      }
      sb.append(" }");
      return sb.toString();
    }
DFS dir listing.
Captures a dir and the corresponding list of files it contains,
with additional properties about the dir (like isBase etc)
ql/src/java/org/apache/hadoop/hive/ql/io/AcidUtils.java