Liking cljdoc? Tell your friends :D

trapperkeeper-filesystem-watcher

This library includes a Trapperkeeper service which provides an API for watching paths on the filesystem for changes and doing something when they change.

Usage

Add the following dependency to your project.clj file:

Clojars Project

Development

The service implementation in this repository is based on java.nio's WatchService. The default implementation of that interface varies drastically in behavior between certain platforms, especially Mac OSX and Linux. The Trapperkeeper service protocol in this repository is consciously written in a platform-agnostic way. When working on this code, it is often a good idea to run the tests on multiple platforms as part of development - say, if you write code on a Mac, run the tests on a Linux VM as well. This is can save you the pain of finding out that things don't work as expected due to platform-specific differences in the implementation of the JDK's WatchService once your new code gets into CI.

Contributing & Support

GitHub issues and PRs are welcome! Additionally, drop us a line in the Vox Pupuli Slack.

Can you improve this documentation? These fine people already did:
Kevin Corcoran, Matthaus Owens, nmburgan, jonathannewman & Justin Stoller
Edit on GitHub

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close