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

equalFilePath returns False for "/a/.." and "/" #87

Closed
yaitskov opened this issue Oct 20, 2021 · 2 comments
Closed

equalFilePath returns False for "/a/.." and "/" #87

yaitskov opened this issue Oct 20, 2021 · 2 comments

Comments

@yaitskov
Copy link

Hi,

equalFilePath doesn't take into account ".."

should be true:

equalFilePath "/" "/.."
equalFilePath "/a/../c" "/c"
@ndmitchell
Copy link
Contributor

That's not right, because of symlinks. Imagine that a is a symlink to foo/bar, then realpath /a/../c would be /foo/c which isn't equal to /c.

@hasufell
Copy link
Member

Maybe we should document that/why we're not doing this.

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