code: private void doMatch(final FileStatusEntry entry, final Path path)
        throws IOException {
      if (entry.refresh(path)) {
        for (final PathAlterationListener listener : listeners.values()) {
          if (entry.isDirectory()) {
            listener.onDirectoryChange(path);
          } else {
            listener.onFileChange(path);
          }
        }
      }
    }
docs: Fire directory/file change events to the registered listeners.
  
  @param entry The previous file system entry
  @param path The current file