Liking cljdoc? Tell your friends :D

bushka.watch

Recursive filesystem watching via io.methvin/directory-watcher — a JVM mirror of bun.watch. Callbacks receive {:event :change|:rename :path "relative/path"}. See docs/MIRROR.md.

Recursive filesystem watching via `io.methvin/directory-watcher` — a JVM
mirror of `bun.watch`. Callbacks receive
`{:event :change|:rename :path "relative/path"}`. See `docs/MIRROR.md`.
raw docstring

close!clj

(close! {:keys [watchers on-close paths]})

Closes every watcher in handle. Best-effort, never throws. Returns nil.

Closes every watcher in handle. Best-effort, never throws. Returns nil.
raw docstring

ignored?clj

(ignored? ignore filename)

True when filename matches any regex in ignore (a seq of patterns or nil).

True when filename matches any regex in ignore (a seq of patterns or nil).
raw docstring

watch!clj

(watch! root {:keys [ignore on-error on-close]} callback)

Recursively watch root for fs changes. opts: :recursive (default true, informational — directory-watcher is always recursive), :ignore (regex vec), :on-error (fn [{:keys [path err]}]), :on-close (fn [{:keys [path]}]). callback receives {:event :change|:rename :path "relative/path"}. Returns {:watchers [DirectoryWatcher] :paths [root]}.

Recursively watch root for fs changes. opts: :recursive (default true,
informational — directory-watcher is always recursive), :ignore (regex vec),
:on-error (fn [{:keys [path err]}]), :on-close (fn [{:keys [path]}]).
callback receives {:event :change|:rename :path "relative/path"}.
Returns {:watchers [DirectoryWatcher] :paths [root]}.
raw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close