Directory watcher
Directory watcher
(close-watcher watcher)
Close an existing watcher and free up it's resources.
Close an existing watcher and free up it's resources.
(watch-dir f & files)
Watch a directory for changes, and call the function f when it does. Returns a watch (an agent) that is activley watching a directory. The implementation uses a capability since Java 7 that wraps inotify on Linux and equivalent mechanisms on other operating systems. The watcher returned by this function is a resource which should be closed with close-watcher.
Watch a directory for changes, and call the function f when it does. Returns a watch (an agent) that is activley watching a directory. The implementation uses a capability since Java 7 that wraps inotify on Linux and equivalent mechanisms on other operating systems. The watcher returned by this function is a resource which should be closed with close-watcher.
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 |