diff --git a/src/nextjournal/beholder.clj b/src/nextjournal/beholder.clj index fb293d6..af74a57 100644 --- a/src/nextjournal/beholder.clj +++ b/src/nextjournal/beholder.clj @@ -1,6 +1,7 @@ (ns nextjournal.beholder (:import [io.methvin.watcher DirectoryChangeEvent DirectoryChangeEvent$EventType DirectoryChangeListener DirectoryWatcher] + [io.methvin.watcher.hashing FileHasher] [java.nio.file Paths])) (defn- fn->listener ^DirectoryChangeListener [f] @@ -24,6 +25,7 @@ Not meant to be called directly but use `watch` or `watch-blocking` instead." [cb paths] (-> (DirectoryWatcher/builder) + (.fileHasher FileHasher/LAST_MODIFIED_TIME) (.paths (map to-path paths)) (.listener (fn->listener cb)) (.build)))