has_drive_letter_prefix

Function has_drive_letter_prefix 

Source
fn has_drive_letter_prefix(s: &str) -> bool
Expand description

True if s starts with <ASCII letter>: — a Windows drive-letter prefix. Both rooted (C:\foo) and drive-relative (C:foo) forms match. Used by safe_join_within_base to reject paths that would rebase off the working directory under Windows path semantics.