Closed klauern closed 11 years ago
This is with the 1.1.0
version, fwiw.
Hi @klauern did you try starting with the provided example project? I haven't tried your code, but I see at least two problems with your code. 1. The settings hash-map that you have left out is not optional and 2. "C:.." is probably not supported, but a relative path will work.
Example project is in the example directory in ojo repo: https://github.com/drakerlabs/ojo/tree/master/example
Ah, silly me. Okay, I was able to get it to work now using this:
(ojo.watch/defwatch watcher
["C:/temp/watching" [["*"]]] [:create :modify]
{}
(let [[{:keys [file kind appended-only? bit-position] :as evt}]
*events*]
(println "event " file kind)))
In a simple ns I wrote up to try this out, I get an error I can't quite figure out where it's happening from. I took the copy/pasted example on the
README
and trie to work with it:And I get: