code: final static protected void addInputPathRecursively(List<FileStatus> result,
        FileSystem fs, Path path, PathFilter inputFilter) 
        throws IOException {
      for(FileStatus stat: fs.listStatus(path, inputFilter)) {
        if (stat.isDir()) {
          addInputPathRecursively(result, fs, stat.getPath(), inputFilter);
        } else {
          result.add(stat);
        }
      }          
    }
docs: Add files in the input path recursively into the results.
  Mark this method as final.
  if a subclass overrides this method, it should instead override
  {@link #addInputPathRecursively(List, FileSystem, Path, PathFilter)}.
  
  @param result
  The List to store all files.
  @param fs
  The FileSystem.
  @param path
  The input path.
  @param inputFilter
  The input filter that can be used to filter files/dirs.
  @throws IOException