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

Pass file hasher to Mac watch service, and add a last modified hasher #26

Closed gmethvin closed 5 years ago

gmethvin commented 5 years ago

Currently since we're not passing the hasher, if you configure a custom hasher it will only be used by the top-level watcher, not by the Mac service.

This also adds a last modified hasher, which is suitable for certain use cases on platforms that provide precise modify times.