git clone 'https://github.com/pyr/watchman.git'
A Clojure library providing a facade for Java's WatchService.
Pull the depenency with leiningen (add this in your
(watch.man/watch! "/some/dir" (fn [event] (println (pr-str event))))
watch! accepts an optional map argument with the following keys:
event-types: a collection of any keywords from
watch! returns the underlying
be called on the service.
Each argument to the callback when using
watch! will be a map with
the following keys:
path: The path a
:pathevent happens on
types: The types of event a
:pathevent was triggered for
srv: The watch service
exception: The exception that was raised for
Copyright © 2015-2019 Pierre-Yves Ritschard, ISC License