Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,13 @@ You call `start-watch` with a collection of specifications. A specification is

`start-watch` returns a function that can be called to stop the watch. For example:

(let [stop-watch (start-watch [{
:path "/some/valid/path"
:event-types [:create :modify :delete]
:callback (fn [event filename] (println event filename))}])] ; start the watch
```clojure
(let [stop-watch (start-watch [{:path "/some/valid/path"
:event-types [:create :modify :delete]
:callback (fn [event filename] (println event filename))}])] ; start the watch
(Thread/sleep 20000) ; manipulate files on the path
(stop-watch)) ; stop the watch
```

## License

Expand Down