code: public void addDir(String dirName) {
          Path dir = Paths.get(dirName);
  
          if (Files.isDirectory(dir)) {
              list.add(new DirPathEntry(dir));
          }
      }
docs: Adds a directory to this finder's search path, ignoring errors.
  
  @param dirName the directory to add