Skip to content

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

Fixing filename refresh issue after renaming

Ilianb2471bb6b7f0
diff --git a/build.number b/build.number
index b77288a8e..9bfb2ea4c 100644
--- a/build.number
+++ b/build.number
@@ -1,4 +1,4 @@
#Build Number for ANT. Do not edit!
-#Tue Dec 17 16:30:43 CET 2013
-build.number=1675
+#Thu Dec 19 13:48:58 CET 2013
+build.number=1683
3=
diff --git a/data/js/ioapi.cordova.js b/data/js/ioapi.cordova.js
index 4756c2eee..9aa8181f9 100644
--- a/data/js/ioapi.cordova.js
+++ b/data/js/ioapi.cordova.js
@@ -198,11 +198,13 @@ define(function (require, exports, module) {
//console.log("Dir content: " + JSON.stringify(entries));
}, function (error) { // error get file system
+ TSPOSTIO.errorOpeningPath();
console.log("Dir List Error: " + error.code);
}
);
},
function (error) {
+ TSPOSTIO.errorOpeningPath();
console.log("Getting dir: "+dirPath+" failed with error code: " + error.code);
}
);
@@ -303,8 +305,8 @@ define(function (require, exports, module) {
parentDirEntry,
newFileName,
function() {
- console.log("file renamed to: "+newFilePath);
- TSPOSTIO.renameFile(filePath, newFilePath);
+ console.log("File renamed to: "+newFilePath+" Old name: "+entry.fullPath);
+ TSPOSTIO.renameFile(entry.fullPath, newFilePath);
},
function() {
console.log("error renaming: "+filePath);