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:mkdir not working on windows with forward slashes in path #623

Open
dekaravanhoc opened this issue Oct 4, 2024 · 0 comments
Open

Comments

@dekaravanhoc
Copy link

Hi there,

using the mkdir function of Path on windows results in the error, that the directory cant be created, if linux style paths are inserted (forward slashes).
It comes down to the vim.loop.fs_mkdir function, wich does not seem to support directory creation on windows with forward slashes. (Same for vim.uv)
In contrast vim.fn.mkdir works without issues - and that would be the behavior I would expect from such a function - resolving forward/backward slashes by itself. Especially as the normalize function of vim.fs normalizes all windows path to linux style (backward slashes to forward ones).

Hope thats the correct place to raise the issue. Best regards.

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

No branches or pull requests

1 participant