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

Option for macOS watcher to use file-level notifications #27

Closed gmethvin closed 5 years ago

gmethvin commented 5 years ago

This adds support for file-level notifications to the macOS watcher. The file-level notifications also make it possible to disable the internal file hashing on the macOS watcher, since we now can identify the exact file that changed. So now we allow specifying no hasher for the macOS watcher, and automatically enable file-level notifications when that is the case.

This is relevant to #22 though it doesn't technically fix the issue since it doesn't change the default. I'm thinking about changing the default in a future version.