Skip to content

TagSpaces is an offline, open source, document manager with tagging support

ML53 - cordova fixed path

Borislav Sapundzhiev30ebb8d91aa7
diff --git a/data/cordova/cordova.api.js b/data/cordova/cordova.api.js
index 214a42a9d..157cef93b 100644
--- a/data/cordova/cordova.api.js
+++ b/data/cordova/cordova.api.js
@@ -826,7 +826,8 @@ define(function(require, exports, module) {
dirPath = normalizePath(dirPath);
var newDirParentPath = normalizePath(newDirPath.substring(0, newDirPath.lastIndexOf('/')));
- console.log("renameDirectoryPromise: " + dirPath + "to: " + newDirPath);
+ newDirPath = normalizePath(newDirPath);
+ console.log("renameDirectoryPromise: " + dirPath + " to: " + newDirPath);
// TODO check if the newFilePath exist or cause issues by renaming
fsRoot.getDirectory(newDirParentPath, {
create: false,