code: private static String fileStatusToString(FileStatus stat) {
      assert stat != null;
  
      return String.format(
          "path: %s, isDir: %s, len: %d, owner: %s",
          stat.getPath().toString(),
          stat.isDir(),
          stat.getLen(),
          stat.getOwner());
    }
docs: Converts the given FileStatus to its string representation.
  
  @param stat FileStatus to convert.
  @return String representation of the given FileStatus.