You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In Windows, allow paths prefixed with \\?\ to be supplied as user input
for root paths and as link values when following links.
https://docs.microsoft.com/en-us/windows/win32/fileio/naming-a-file
In [findWorkingDir], call to [removeTrailingSlashes] is no longer needed
because [Filename.basename] is POSIX-compliant since OCaml 4.00.
Copy file name to clipboardExpand all lines: src/fspath.ml
+43-12Lines changed: 43 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -40,15 +40,46 @@ let toPrintString (Fspath f) = f
40
40
lettoDebugString (Fspath f) =String.escaped f
41
41
42
42
(* Needed to hack around some ocaml/Windows bugs, see comment at stat, below *)
43
-
let winRootRx =Rx.rx "(([a-zA-Z]:)?/|//[^/]+/[^/]+/)"
43
+
let winRootRx =Rx.rx "(([a-zA-Z]:)?/|//[^?/]+/[^/]+/|//[?]/[Uu][Nn][Cc]/[^/]+/[^/]+/)|//[?]/([^Uu][^/]*|[Uu]|[Uu][^Nn][^/]*|[Uu][Nn]|[Uu][Nn][^Cc][^/]*|[Uu][Nn][Cc][^/]+)/"
44
44
(* FIX I think we could just check the last character of [d]. *)
45
45
letisRootDird=
46
46
(* We assume all path separators are slashes in d *)
0 commit comments