Watch directories for changes.
Similar to watchtower (but uses JDK 7 async notification mechanisms rather than polling)
Similar to ojo (but simpler, unlimited watchers allowed and directory recursive)
Add the following dependency to your project.clj file
(require '[juxt.dirwatch :refer (watch-dir)])
(watch-dir println (clojure.java.io/file "/tmp"))
Copyright © 2013 JUXT.
Distributed under the Eclipse Public License, the same as Clojure.
Can you improve this documentation?Edit on GitHub
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |