with-monitor ( path recursive? quot -- )
File system change monitors

Prev:Monitors on different platforms


Vocabulary
io.monitors

Inputs
patha pathname string
recursive?a boolean
quota quotation with stack effect ( monitor -- )


Outputs
None

Word description
Opens a file system change monitor and passes it to the quotation. Closes the monitor after the quotation returns or throws an error.

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

Definition