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

Allow absolute paths in VfsPath::join(), fix bug #45

Merged

Conversation

Property404
Copy link
Contributor

@Property404 Property404 commented Dec 11, 2022

Closes #42

Can now do:
path.join("/") or path.join("foo/bar/baz")

This also fixes a bug where ".." would not behave correctly

Previously, '..' would refer to the parent of the path being joined to,
and not the current path.
@manuel-woelker manuel-woelker merged commit 35844f7 into manuel-woelker:master Dec 18, 2022
@manuel-woelker
Copy link
Owner

Thanks for the PR! 👍

@Property404 Property404 deleted the Property404/join-root branch December 18, 2022 17:52
@Property404 Property404 restored the Property404/join-root branch December 18, 2022 17:52
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.

Have VfsPath::join() treat paths more unix-like
2 participants