Skip to content

Add ChainablePath Normalize - #176

Merged
dennisdoomen merged 1 commit into
mainfrom
dennisdoomen-add-chainable-path-normalize
Sep 5, 2026
Merged

dennisdoomen merged 1 commit into
mainfrom
dennisdoomen-add-chainable-path-normalize

Conversation

@dennisdoomen

Copy link
Copy Markdown
Owner

Add ChainablePath.Normalize() to clean up path text without changing whether the path is relative or absolute.

This method removes . segments and resolves internal .. segments without reading the current directory or file system. It keeps leading .. segments in relative paths when they cannot be resolved. For absolute paths, .. at the root stays at the root.

ToString() still returns the stored path as-is. Callers must opt in to cleanup by calling Normalize().

Closes #132.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@github-actions

github-actions Bot commented Sep 5, 2026

Copy link
Copy Markdown

Test Results

181 tests  +8   181 ✅ +8   1s ⏱️ -1s
  3 suites ±0     0 💤 ±0 
  3 files   ±0     0 ❌ ±0 

Results for commit 615f04e. ± Comparison against base commit 674bb9d.

@dennisdoomen dennisdoomen added the enhancement New feature or request label Sep 5, 2026
@dennisdoomen
dennisdoomen merged commit 3b8f779 into main Sep 5, 2026
6 checks passed
@dennisdoomen
dennisdoomen deleted the dennisdoomen-add-chainable-path-normalize branch September 5, 2026 10:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[API Proposal]: Normalize() for purely textual path cleanup

1 participant