-
-
Notifications
You must be signed in to change notification settings - Fork 284
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
Issues with Windows drive letters, absolute() and parent() #489
Comments
This was referenced Sep 16, 2023
epwalsh
added a commit
to epwalsh/obsidian.nvim
that referenced
this issue
Jan 26, 2024
epwalsh
added a commit
to epwalsh/obsidian.nvim
that referenced
this issue
Jan 26, 2024
might also be fixed with this commit 4f71c0c now |
Yes the issue seems to be fixed for me. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In Windows,
"c:"
does not seem to be considered an absolute path:This changes, when a trailing
\
is added:That may be fine (depending on definitions). However when using
Path:parent()
, no trailing slash is added, which leads to unexpected results:The solution seems to be to either make sure that
parent()
always appends a path separator (which would seem reasonable to me, to distinguish that the path is for a directory and not for a file) or"c:"
would need to be detected as the filesystem root and handled accordingly byis_absolute()
andabsolute()
.The text was updated successfully, but these errors were encountered: