code: public FileStatus getFileStatus(Path f) throws IOException {
      FileStatus fi = dfs.getFileInfo(getPathName(f));
      if (fi != null) {
        fi.makeQualified(this);
        return fi;
      } else {
        throw new FileNotFoundException("File does not exist: " + f);
      }
    }
docs: Returns the stat information about the file.
  @throws FileNotFoundException if the file does not exist.