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

path_has_parent() doesn't with a mix of expanded and non-expanded paths #412

Open
mgirlich opened this issue Apr 4, 2023 · 0 comments · May be fixed by #413
Open

path_has_parent() doesn't with a mix of expanded and non-expanded paths #412

mgirlich opened this issue Apr 4, 2023 · 0 comments · May be fixed by #413
Labels
bug an unexpected problem or unintended behavior

Comments

@mgirlich
Copy link
Contributor

mgirlich commented Apr 4, 2023

I stumbled over this when using path_has_parent() with a path from dir_ls().

fs::path_has_parent("~/GitHub", "~/")
#> [1] TRUE
fs::path_has_parent("~/GitHub", fs::path_expand("~/"))
#> [1] FALSE

Created on 2023-04-04 with reprex v2.0.2

@mgirlich mgirlich linked a pull request Apr 4, 2023 that will close this issue
@gaborcsardi gaborcsardi added the bug an unexpected problem or unintended behavior label Nov 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug an unexpected problem or unintended behavior
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants