code: private void addCurrentDirFiles(List<File> theFiles, List<File> theDirs, File currentDir) {
      File dirs[] = currentDir.listFiles(new FileFilter() {
  
        @Override
        public boolean accept(File file) {
          return file.isDirectory() && !file.getName().startsWith(".") && !file.getName().equals("META-INF");
        }
        
      });
      
      File htmlFiles[] = currentDir.listFiles(new FileFilter() {
  
        @Override
        public boolean accept(File file) {
          return !file.isDirectory() && file.isFile() && file.canRead() && !file.getName().startsWith(".") && (file.getName().endsWith(".html") || file.getName().endsWith(".htm"));
        }
        
      });
      
      if(dirs != null && dirs.length > 0) {
        theDirs.addAll(Arrays.asList(dirs));
      }
      if(htmlFiles != null && htmlFiles.length > 0) {
        theFiles.addAll(Arrays.asList(htmlFiles));
      }
    }
docs: Adds all html files to the list passed in.
  
  @param theFiles The list to populate with the current directory's html files.
  @param theDirs The list to populate with the current directory's child directories.
  @param currentDir The current directory.