···3333let dotdot = ".."
3434let dotdot_sub = String.sub dotdot
35353636-let validate_and_collapse_seps p = try
3636+let validate_and_collapse_seps p =
3737 (* collapse non-initial sequences of [dir_sep] to a single one and checks
3838 no null byte *)
3939 let max_idx = String.length p - 1 in
···6060 if max_idx > 0 then (if p.[0] = dir_sep_char then 1 else 0) else 0
6161 in
6262 try_no_alloc false start
6363-with Exit -> None
64636564let is_unc_path_windows p = String.is_prefix "\\\\" p
6665