Path.isRelativeTo
bool isRelativeTo(Path other) const @safeReturn whether this path is relative to other (pathlib-like).
Semantics:
- Returns
truewhenthislies on or underother(prefix by path
components), considering platform case-sensitivity.
- Absolute/relative mismatches return
false. - On Windows, drive letters and UNC anchors must match (comparison is
case-insensitive).
bool isRelativeTo(string other) const @safeOverload taking a string