code: public static String toStringHadoopFileStatus(FileStatus fs) {
      StringBuilder sb = new StringBuilder();
      sb.append("HadoopFileStatus: Path: ").append(fs.getPath());
      sb.append(" , Length: ").append(fs.getLen());
      // Use isDir instead of isDirectory for compatibility with hadoop 1.
      sb.append(" , IsDir: ").append(fs.isDir());
      sb.append(" , BlockReplication: ").append(fs.getReplication());
      sb.append(" , BlockSize: ").append(fs.getBlockSize());
      sb.append(" , ModificationTime: ").append(fs.getModificationTime());
      sb.append(" , AccessTime: ").append(fs.getAccessTime());
      sb.append(" , Permission: ").append(fs.getPermission());
      sb.append(" , Owner: ").append(fs.getOwner());
      sb.append(" , Group: ").append(fs.getGroup());
      return sb.toString();
    }
docs: Returns a string representation of a Hadoop {@link FileStatus}.
  
  @param fs Hadoop {@link FileStatus}
  @return its string representation