Skip to content

Commit

Permalink
Update fs_actions.lua fixes nvim-neo-tree#1399
Browse files Browse the repository at this point in the history
  • Loading branch information
WillEhrendreich committed Mar 15, 2024
1 parent 120a83e commit e6bd363
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/neo-tree/sources/filesystem/lib/fs_actions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,7 @@ M.delete_node = function(path, callback, noconfirm)
-- first try using native system commands, which are recursive
local success = false
if utils.is_windows then
local result = vim.fn.system({ "cmd.exe", "/c", "rmdir", "/s", "/q", path })
local result = vim.fn.system({ "cmd.exe", "/c", "rmdir", "/s", "/q", '"', path, '"' })
local error = vim.v.shell_error
if error ~= 0 then
log.debug("Could not delete directory '", path, "' with rmdir: ", result)
Expand Down

0 comments on commit e6bd363

Please sign in to comment.