-
Notifications
You must be signed in to change notification settings - Fork 256
Delete folder doesn't work on Windows #264
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
Labels
bug
Something isn't working
Comments
Huh, I did have to just work off of documentation for this one because I don't run neovim on Windows. It could be that it is actually just part of cmd.exe and not it's own executable. Would you mind trying these variants and letting me know if it works? at this line:
try: local result = vim.fn.system({"cmd.exe", "rmdir", "/s", "/q", path}) or local result = vim.fn.system("rmdir /s /q " .. vim.fn.fnameescape(path)) |
local result = vim.fn.system({"cmd.exe", "/c", "rmdir", "/s", "/q", path}) works |
Thanks @lopi-py! |
cseickel
added a commit
that referenced
this issue
Apr 11, 2022
Updated. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I get this error
if I exit from neovim and try
rmdir
, it works, it's odd, maybe the env is not properly setted?The text was updated successfully, but these errors were encountered: