Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add splitPath operation #2919

Merged
merged 5 commits into from
Dec 30, 2024
Merged

Add splitPath operation #2919

merged 5 commits into from
Dec 30, 2024

Conversation

harendra-kumar
Copy link
Member

No description provided.

-- ["home","user","..","directory"]
--
{-# INLINE splitPath #-}
splitPath
Copy link
Member

Choose a reason for hiding this comment

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

splitPath will ignore the trailing separator.
Is there a loss of information here?

Copy link
Member

Choose a reason for hiding this comment

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

a/b/ is the same as a/b/.
a/b is different from a/b/

Copy link
Member Author

Choose a reason for hiding this comment

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

Ideally the components should not have separators. We can keep the trailing slash but that would require special casing it and not sure how useful that will be.

@harendra-kumar harendra-kumar merged commit 37f9565 into path-refactoring Dec 30, 2024
16 of 20 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.

2 participants