Skip to content

Relative path kinds - #232

Draft
ForNeVeR wants to merge 3 commits into
mainfrom
feature/224.relative-path-kinds
Draft

ForNeVeR wants to merge 3 commits into
mainfrom
feature/224.relative-path-kinds

Conversation

@ForNeVeR

@ForNeVeR ForNeVeR commented Sep 23, 2026 •

Copy link
Copy Markdown
Owner

Closes #224.

This introduces LocalPath::Kind property with all the possible Windows/Unix standard path kinds (except Windows' UNC and DOS Devices, so far).

Also, this now adds proper handling of path kinds when combining paths and checking for StartsWith / IsPrefix. Paths of different kinds interact as specified by the documentation; inspiration for the path combination was taken from the C++ standard.

This algorithm follows the logic defined by the C++ standard, the mental model being that a result of an operation `a / b` is the same as if you did `cd /d a && cd /d b` in the Cmd shell (with an analog in the Unix shell).
@ForNeVeR ForNeVeR self-assigned this Sep 23, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

LocalPath: prefix matching needs a four-way path kind, not IsPathRooted

1 participant