code: public static List<FileStatus> listMostNestedPathRecursively(FileSystem fs, Path path, PathFilter fileFilter)
        throws IOException {
      return listMostNestedPathRecursivelyHelper(fs, Lists.<FileStatus>newArrayList(), fs.getFileStatus(path),
          fileFilter);
    }
docs: Method to list out all files, or directory if no file exists, under a specified path.
  The specified {@link PathFilter} is treated as a file filter, that is it is only applied to file {@link Path}s.