TagSpaces is an offline, open source, document manager with tagging support
webdav: fixed renameDirectoryPromise (cherry picked from commit 0193db4)
Borislav Sapundzhiev01b9a0f8464f
diff --git a/data/web/web.api.js b/data/web/web.api.jsindex 19ee83efd..2dc02e933 100644--- a/data/web/web.api.js+++ b/data/web/web.api.js@@ -427,6 +427,7 @@ define(function(require, exports, module) {* @returns {Promise.<Success, Error>}*/function renameDirectoryPromise(dirPath, newDirPath) {+ var newDirPath = TSCORE.TagUtils.extractParentDirectoryPath(dirPath) + TSCORE.dirSeparator + newDirPath;console.log("Renaming directory: " + dirPath + " to " + newDirPath);return new Promise(function(resolve, reject) {if (dirPath === newDirPath) {@@ -439,7 +440,7 @@ define(function(require, exports, module) {function(status, data, headers) {console.log("Rename Directory Status/Content/Headers: " + status + " / " + data + " / " + headers);if (checkStatusCode(status)) {- resolve([dirPath, newDirPath]);+ resolve(newDirPath);} else {reject("rename: " + dirPath + " failed " + status);}