https://github.com/juxt/dirwatch
A Clojure directory watcher, wrapping the JDK 7 java.nio.file.WatchService.
https://github.com/juxt/dirwatch
Last synced: 6 months ago
JSON representation
A Clojure directory watcher, wrapping the JDK 7 java.nio.file.WatchService.
- Host: GitHub
- URL: https://github.com/juxt/dirwatch
- Owner: juxt
- License: other
- Created: 2013-07-11T14:37:38.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2021-08-31T17:37:27.000Z (over 4 years ago)
- Last Synced: 2025-07-29T14:44:58.704Z (6 months ago)
- Language: Clojure
- Size: 38.1 KB
- Stars: 68
- Watchers: 3
- Forks: 16
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# dirwatch
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)
## Installation
Add the following dependency to your `project.clj` file
[](http://clojars.org/juxt/dirwatch)
## Usage
```clojure
(require '[juxt.dirwatch :refer (watch-dir)])
(watch-dir println (clojure.java.io/file "/tmp"))
```
## License
Copyright © 2013 JUXT.
Distributed under the Eclipse Public License, the same as Clojure.