bugfix for renaming files

This commit is contained in:
Martin Grenfell
2008-06-22 17:19:07 +12:00
parent c0d83f95a8
commit 2b1eecebb2

View File

@@ -1212,7 +1212,7 @@ function! s:oPath.Rename(newPath) dict
throw "NERDTree.Path.InvalidArguments exception. Invalid newPath for renaming = ". a:newPath throw "NERDTree.Path.InvalidArguments exception. Invalid newPath for renaming = ". a:newPath
endif endif
let success = rename(self.StrForOS(!s:running_windows), a:newPath) let success = rename(self.StrForOS(0), a:newPath)
if success != 0 if success != 0
throw "NERDTree.Path.Rename Exception: Could not rename: '" . self.StrForOS(0) . "'" . 'to:' . a:newPath throw "NERDTree.Path.Rename Exception: Could not rename: '" . self.StrForOS(0) . "'" . 'to:' . a:newPath
endif endif