mirror of
https://github.com/preservim/nerdtree.git
synced 2025-11-11 04:43:49 -05:00
dont ever escape paths when calling delete()
previously we were escaping when deleting files, and this was causing the operation to fail
This commit is contained in:
@@ -1010,7 +1010,7 @@ function! s:oPath.Delete() dict
|
||||
throw "NERDTree.Path.Deletion Exception: Could not delete directory: '" . self.StrForOS(0) . "'"
|
||||
endif
|
||||
else
|
||||
let success = delete(self.StrForOS(!s:running_windows))
|
||||
let success = delete(self.StrForOS(0))
|
||||
if success != 0
|
||||
throw "NERDTree.Path.Deletion Exception: Could not delete file: '" . self.Str(0) . "'"
|
||||
endif
|
||||
|
||||
Reference in New Issue
Block a user