Skip to content

feat: add AbsolutePath.PathRoot() API - #216

Merged
ForNeVeR merged 1 commit into
ForNeVeR:mainfrom
fskalkan:feat/215-path-root
Sep 13, 2026
Merged

feat: add AbsolutePath.PathRoot() API#216
ForNeVeR merged 1 commit into
ForNeVeR:mainfrom
fskalkan:feat/215-path-root

Conversation

@fskalkan

Copy link
Copy Markdown
Contributor

This PR introduces the AbsolutePath.PathRoot() API to retrieve the root of a path (e.g., C:\ on Windows or / on Unix), similar to the BCL's Path.GetPathRoot.

Changes included:

  • Implemented PathRoot() method in AbsolutePath.cs.
  • Added unit tests to verify correct root extraction behavior.

Closes #215

@ForNeVeR ForNeVeR left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@ForNeVeR
ForNeVeR merged commit 4a8b6dc into ForNeVeR:main Sep 13, 2026
10 checks passed
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.

API to determine path root

2 participants