mirror of
https://github.com/overte-org/overte.git
synced 2025-04-22 03:04:33 +02:00
Add prepended slash on rename if missing
This commit is contained in:
parent
76152906be
commit
76ed16314a
1 changed files with 4 additions and 0 deletions
|
@ -73,6 +73,10 @@ Window {
|
|||
function doRenameFile(oldPath, newPath) {
|
||||
console.log("Renaming " + oldPath + " to " + newPath);
|
||||
|
||||
if (newPath[0] != "/") {
|
||||
newPath = "/" + newPath;
|
||||
}
|
||||
|
||||
Assets.renameMapping(oldPath, newPath, function(err) {
|
||||
if (err) {
|
||||
console.log("Error renaming: ", oldPath, "=>", newPath, " - error ", err);
|
||||
|
|
Loading…
Reference in a new issue