hosh
hosh copied to clipboard
watch recursive
Problem
watch should be recursive by default.
Solution
Would be also possible to register recursively by using an internal
class com.sun.nio.file.ExtendedWatchEventModifier.FILE_TREE.
com.sun.nio.file.ExtendedWatchEventModifier.FILE_TREE modifier is not supported on MacOS
https://gist.github.com/fabriziofortino/83eb36c7b48e9b900c1da1d8508245cd
pros:
- implements recursive watching
- no deps besides JDK
https://github.com/gmethvin/directory-watcher
pros:
- implements recursive watching
- replaces macosx polling with JNA based implementation of
WatchService
cons:
- requires SLF4J