code: public static List<FileStatus> listPathsRecursively(FileSystem fs, Path path, PathFilter fileFilter)
        throws IOException {
      return listPathsRecursivelyHelper(fs, Lists.<FileStatus>newArrayList(), fs.getFileStatus(path), fileFilter);
    }
docs: Helper method to list out all paths under a specified path. If the {@link org.apache.hadoop.fs.FileSystem} is
  unable to list the contents of a relevant directory, will log an error and skip.