Skip to content

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

cordova list directory - fixed error handling

Borislav Sapundzhiev3ca59404418d
diff --git a/data/cordova/cordova.api.js b/data/cordova/cordova.api.js
index 9778d9d1e..574aca557 100644
--- a/data/cordova/cordova.api.js
+++ b/data/cordova/cordova.api.js
@@ -360,7 +360,11 @@ define(function(require, exports, module) {
}
}, // jshint ignore:line
function(error) { // error get file system
- console.log("Getting file " + entry.name + " meta error: " + error.code);
+ console.log("listDirectory error: " + JSON.stringify(error));
+ pendingCallbacks--;
+ if(pendingCallbacks === 0 && i === entries.length){
+ TSPOSTIO.listDirectory(anotatedDirList);
+ }
} // jshint ignore:line
); // jshint ignore:line
} else {