gmethvin / directory-watcher

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

Add an option to follow symlinks #30

Open gmethvin opened 5 years ago

gmethvin commented 5 years ago

There should be an option in directory-watcher to follow symlinks and make sure they are handled properly with different configurations.

ngocdaothanh commented 1 year ago

Hi, does the lib support symlink? The README doesn't clarify if symlink is supported or not.

I've just tried on macOS 13.2.1, and it seems modification event is not emitted when the actual file of the symlink is modified (the symlink itself is not modified).

gmethvin commented 1 year ago

This issue is still accurate. There is currently no support for following symlinks.

I haven't spent much time looking into it, but if you're interested you're welcome to share your ideas here or submit a PR.