normalize-path on windows file monitor
parent
b440bda681
commit
13c2e444a8
|
@ -39,7 +39,7 @@ M: monitor set-timeout (>>timeout) ;
|
||||||
HOOK: (monitor) io-backend ( path recursive? mailbox -- monitor )
|
HOOK: (monitor) io-backend ( path recursive? mailbox -- monitor )
|
||||||
|
|
||||||
: <monitor> ( path recursive? -- monitor )
|
: <monitor> ( path recursive? -- monitor )
|
||||||
>r normalize-path r> <mailbox> (monitor) ;
|
<mailbox> (monitor) ;
|
||||||
|
|
||||||
: next-change ( monitor -- path changed )
|
: next-change ( monitor -- path changed )
|
||||||
[ queue>> ] [ timeout ] bi mailbox-get-timeout first2 ;
|
[ queue>> ] [ timeout ] bi mailbox-get-timeout first2 ;
|
||||||
|
|
|
@ -98,7 +98,7 @@ TUPLE: win32-monitor < monitor port ;
|
||||||
|
|
||||||
M:: winnt (monitor) ( path recursive? mailbox -- monitor )
|
M:: winnt (monitor) ( path recursive? mailbox -- monitor )
|
||||||
[
|
[
|
||||||
path mailbox win32-monitor new-monitor
|
path normalize-path mailbox win32-monitor new-monitor
|
||||||
path open-directory \ win32-monitor-port <buffered-port>
|
path open-directory \ win32-monitor-port <buffered-port>
|
||||||
recursive? >>recursive
|
recursive? >>recursive
|
||||||
>>port
|
>>port
|
||||||
|
|
Loading…
Reference in New Issue