code: public static Iterable<File> iterFilesRecursive(final File dir,
        final String ext) {
      return iterFilesRecursive(dir, Pattern.compile(Pattern.quote(ext) + "$"));
    }
docs: Iterate over all the files in the directory, recursively.
  
  @param dir
  The root directory.
  @param ext
  A string that must be at the end of all files (e.g. ".txt")
  @return All files within the directory ending in the given extension.