Skip to content
/ dirwatch Public

A Clojure directory watcher, wrapping the JDK 7 java.nio.file.WatchService.

License

Notifications You must be signed in to change notification settings

juxt/dirwatch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Clojars Project

Usage

    (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.

About

A Clojure directory watcher, wrapping the JDK 7 java.nio.file.WatchService.

Resources

License

Stars

Watchers

Forks

Packages

No packages published