Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

watch recursive #94

Open
dfa1 opened this issue Apr 19, 2019 · 3 comments
Open

watch recursive #94

dfa1 opened this issue Apr 19, 2019 · 3 comments
Labels
command related to a command help wanted open problem waiting for help/discussion

Comments

@dfa1
Copy link
Collaborator

dfa1 commented Apr 19, 2019

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.

@dfa1 dfa1 added the command related to a command label Apr 19, 2019
@dfa1
Copy link
Collaborator Author

dfa1 commented Apr 19, 2019

com.sun.nio.file.ExtendedWatchEventModifier.FILE_TREE modifier is not supported on MacOS

@dfa1 dfa1 added the help wanted open problem waiting for help/discussion label May 21, 2019
@dfa1
Copy link
Collaborator Author

dfa1 commented May 21, 2019

https://gist.github.com/fabriziofortino/83eb36c7b48e9b900c1da1d8508245cd

pros:

  • implements recursive watching
  • no deps besides JDK

@dfa1
Copy link
Collaborator Author

dfa1 commented Jul 19, 2019

https://github.com/gmethvin/directory-watcher

pros:

  • implements recursive watching
  • replaces macosx polling with JNA based implementation of WatchService

cons:

  • requires SLF4J

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
command related to a command help wanted open problem waiting for help/discussion
Projects
None yet
Development

No branches or pull requests

1 participant