fixed handling of UNC paths under windows
parent
bdc0526f37
commit
b3f0ff51aa
|
@ -325,9 +325,14 @@ M: winnt root-directory? ( path -- ? )
|
||||||
TR: normalize-separators "/" "\\" ;
|
TR: normalize-separators "/" "\\" ;
|
||||||
|
|
||||||
M: winnt normalize-path ( string -- string' )
|
M: winnt normalize-path ( string -- string' )
|
||||||
absolute-path
|
dup [ "//" head? ] [ "\\\\" head? ] bi
|
||||||
normalize-separators
|
or [
|
||||||
prepend-prefix ;
|
normalize-separators
|
||||||
|
] [
|
||||||
|
absolute-path
|
||||||
|
normalize-separators
|
||||||
|
prepend-prefix
|
||||||
|
] if ;
|
||||||
|
|
||||||
M: winnt CreateFile-flags ( DWORD -- DWORD )
|
M: winnt CreateFile-flags ( DWORD -- DWORD )
|
||||||
FILE_FLAG_OVERLAPPED bitor ;
|
FILE_FLAG_OVERLAPPED bitor ;
|
||||||
|
|
Loading…
Reference in New Issue