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

normalise doesn't remove '..' #86

Closed
yaitskov opened this issue Oct 20, 2021 · 1 comment
Closed

normalise doesn't remove '..' #86

yaitskov opened this issue Oct 20, 2021 · 1 comment

Comments

@yaitskov
Copy link

Hi,

I would expect from normalise to remove '..' from path:

normalise "/a/b/../c" == "/a/c"
normalise "/.." == "/"
@ndmitchell
Copy link
Contributor

Yeah, I expected that when I first started working on filepath. It's not correct though, because of symlinks, as per #87 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants