(monitor) ( path recursive? mailbox -- monitor )
File system change monitors

Prev:next-change ( monitor -- change )
Next:File system change descriptors


Inputs and outputs
patha pathname string
recursive?a boolean
mailboxa mailbox
monitora new monitor

Generic word contract
Opens a file system change monitor which listens for changes on path and posts notifications to mailbox as triples with shape { path changed monitor } . The boolean indicates whether changes in subdirectories should be reported.

Throws an error if the pathname does not exist, if a monitor could not be created or if the platform does not support monitors.


HOOK: (monitor) io-backend
( path recursive? mailbox -- monitor )