FSWatch
Constants
VERSION = "0.1.0"
Class methods
watch(path : String, *, recursive : Bool = true, interval : Time::Span | Nil = nil, skip : String -> Bool | Nil = nil, &handler : Event -> ) : Watch
Watch path (a file or a directory; by default the whole tree recursively) and yield every change event to handler.
interval: configures the Poll backend's tick (other backends
ignore it). skip: receives every child directory the recursive
arming is about to watch (absolute path); a true return drops the
subtree — no watch, no descent, no events from it. Returns a
Watch handle; call #stop to tear down.