Skip to content

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

fixing refresh issue after dir rename

uggrock12cff791dd50
diff --git a/data/cordova/cordova.api.js b/data/cordova/cordova.api.js
index 83d5a07f8..5af1b47b2 100644
--- a/data/cordova/cordova.api.js
+++ b/data/cordova/cordova.api.js
@@ -42,7 +42,7 @@ define(function(require, exports, module) {
// Platform specific functions
function normalizePath(path) {
- //we set absoilute path because some extensions didn't recognize cdvfile
+ //we set absolute path because some extensions didn't recognize cdvfile
//but in cordova.api implementation we didn't need absolute path so we strip nativeURL
if (path.indexOf(fsRoot.nativeURL) === 0) {
path = path.replace(fsRoot.nativeURL , "/");
@@ -843,8 +843,8 @@ define(function(require, exports, module) {
parentDirEntry,
newDirName,
function() {
- console.log("Directory renamed to: " + newDirPath + " Old name: " + entry.fullPath);
- resolve(newDirPath);
+ console.log("Directory renamed to: " + newDirPath + " from: " + entry.fullPath);
+ resolve("/" + newDirPath);
},
function() {
reject("error renaming: " + dirPath);