pyr.watchman

https://github.com/pyr/watchman.git

git clone 'https://github.com/pyr/watchman.git'

(ql:quickload :pyr.watchman)
6

watchman: the hero your filesystem needs

Build Status

A Clojure library providing a facade for Java's WatchService.

Usage

Pull the depenency with leiningen (add this in your project.clj)

[spootnik/watchman "0.3.7"]
(watch.man/watch!
  "/some/dir"
  (fn [event] (println (pr-str event))))

watch! accepts an optional map argument with the following keys:

watch! returns the underlying WatchService, watch.man/close can be called on the service.

Each argument to the callback when using watch! will be a map with the following keys:

Changelog

0.3.8

License

Copyright © 2015-2019 Pierre-Yves Ritschard, ISC License