fn named(path: &Path, expected: &str) -> Result<bool>
Match fixed components using the supported platform’s case behavior.