gmethvin / directory-watcher

A cross-platform Java recursive directory watcher, with a JNA macOS watcher and Scala better-files integration
Apache License 2.0
264 stars 34 forks source link

added ability to subscribe to ChangeSetListener events #75

Closed treblereel closed 3 years ago

treblereel commented 3 years ago

It would be nice to have the ability to subscribe to ChangeSetListener events. @mdproctor may i ask you to take a look ?

mdproctor commented 3 years ago

Instead of changing ChangeSetListener, I wonder if it would be best to make a composite listener, which takes 1..n child listeners. So it could take the ChangeSetListener, plus your own.

gmethvin commented 3 years ago

What's the advantage of this versus registering a DirectoryChangeListener directly? It looks like you would just get a ChangeSet with a single entry each time.

gmethvin commented 3 years ago

Closing this since it seems to be inactive, but if you're still interested please feel free to continue the discussion.