TagSpaces is an offline, open source, document manager with tagging support
adding dir path parameter to the handling of failed directory openings
Ilian4989c15045f7
diff --git a/data/chromelight/chrome.api.js b/data/chromelight/chrome.api.jsindex 913fd94b7..e19419eaf 100644--- a/data/chromelight/chrome.api.js+++ b/data/chromelight/chrome.api.js@@ -69,7 +69,7 @@return index;}).fail(function(data) {- TSPOSTIO.errorOpeningPath();+ TSPOSTIO.errorOpeningPath(dirPath);console.log("Error opening path "+data);});*/}@@ -154,7 +154,7 @@TSPOSTIO.listDirectory(anotatedDirList);}).fail(function(data) {- TSPOSTIO.errorOpeningPath();+ TSPOSTIO.errorOpeningPath(dirPath);console.log("Error opening path "+data);});};@@ -194,7 +194,7 @@TSPOSTIO.listSubDirectories(anotatedDirList, dirPath);}).fail(function(data) {- TSPOSTIO.errorOpeningPath();+ TSPOSTIO.errorOpeningPath(dirPath);console.log("Error opening path "+data);});diff --git a/data/cordova/cordova.api.js b/data/cordova/cordova.api.jsindex 875d7601d..1cc40fe52 100644--- a/data/cordova/cordova.api.js+++ b/data/cordova/cordova.api.js@@ -205,13 +205,13 @@ define(function (require, exports, module) {//console.log("Dir content: " + JSON.stringify(entries));TSPOSTIO.listSubDirectories(anotatedDirList, dirPath);}, function (error) { // error get file system- //TSPOSTIO.errorOpeningPath();+ //TSPOSTIO.errorOpeningPath(dirPath);console.log("Listing sub directories failed: " + error.code);});},function (error) {- //TSPOSTIO.errorOpeningPath();+ //TSPOSTIO.errorOpeningPath(dirPath);console.log("Getting sub directories of : "+dirPath+" failed: " + error.code);});@@ -278,13 +278,13 @@ define(function (require, exports, module) {//console.log("Dir content: " + JSON.stringify(entries));}, function (error) { // error get file system- TSPOSTIO.errorOpeningPath();+ TSPOSTIO.errorOpeningPath(dirPath);console.log("Dir List Error: " + error.code);});},function (error) {- TSPOSTIO.errorOpeningPath();+ TSPOSTIO.errorOpeningPath(dirPath);console.log("Getting dir: "+dirPath+" failed with error code: " + error.code);});diff --git a/data/node-webkit/node-webkit.api.js b/data/node-webkit/node-webkit.api.jsindex 8c5438ffd..4d1a79281 100644--- a/data/node-webkit/node-webkit.api.js+++ b/data/node-webkit/node-webkit.api.js@@ -403,7 +403,7 @@ define(function(require, exports, module) {try {fs.readdir(dirPath, function (error, dirList) {if (error) {- TSPOSTIO.errorOpeningPath();+ TSPOSTIO.errorOpeningPath(dirPath);console.log("Listing directory: " + dirPath + " failed " + error);return;}