(extensions & exts)
Create a file-filter for the given extensions.
Create a file-filter for the given extensions.
(file-filter w filt)
Add a filter to a watcher. A filter is just a function that takes in a java.io.File and returns truthy about whether or not it should be included.
Add a filter to a watcher. A filter is just a function that takes in a java.io.File and returns truthy about whether or not it should be included.
(ignore-dotfiles f)
A file-filter that removes any file that starts with a dot.
A file-filter that removes any file that starts with a dot.
(on-change w func)
When files are changed, execute a function that takes in a seq of the changed file objects.
When files are changed, execute a function that takes in a seq of the changed file objects.
(rate w r)
Set the rate of polling. Depreciated, rate has no meaning in this version.
Set the rate of polling. Depreciated, rate has no meaning in this version.
(watch {:keys [filters dirs on-change]})
Execute a watcher map
Execute a watcher map
(watcher dirs & body)
Create a watcher for the given dirs (either a string or coll of strings), applying the given transformations.
Transformations available: (rate) (file-filter) (on-change)
Create a watcher for the given dirs (either a string or coll of strings), applying the given transformations. Transformations available: (rate) (file-filter) (on-change)
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close