Skip to content

Instantly share code, notes, and snippets.

@murtaza52
Created June 17, 2013 01:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save murtaza52/5794159 to your computer and use it in GitHub Desktop.
Save murtaza52/5794159 to your computer and use it in GitHub Desktop.
using watch-seq from clj-io2
(use 'nio2.watch)
(use 'nio2.io)
(doseq [ev (watch-seq (path "/" "home" "murtaza" "tmp") :create :modify :delete)]
(println [(ev :path) (ev :kind)]))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment