17 lines
454 B
Factor
Executable File
17 lines
454 B
Factor
Executable File
! Copyright (C) 2008 Slava Pestov.
|
|
! See http://factorcode.org/license.txt for BSD license.
|
|
USING: io.backend kernel continuations ;
|
|
IN: io.monitor
|
|
|
|
HOOK: <monitor> io-backend ( path recursive? -- monitor )
|
|
|
|
HOOK: next-change io-backend ( monitor -- path changes )
|
|
|
|
SYMBOL: +add-file+
|
|
SYMBOL: +remove-file+
|
|
SYMBOL: +modify-file+
|
|
SYMBOL: +rename-file+
|
|
|
|
: with-monitor ( path recursive? quot -- )
|
|
>r <monitor> r> with-disposal ; inline
|