Skip to content

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

experiments with chrome.filechooser API

Ilian28a2e435239c
diff --git a/data/chrome/chrome.api.js b/data/chrome/chrome.api.js
index 5ff52f12b..783d2dcd3 100644
--- a/data/chrome/chrome.api.js
+++ b/data/chrome/chrome.api.js
@@ -158,6 +158,15 @@ IO-API
var listDirectory = function(dirPath) {
console.log("Listing directory: "+dirPath);
TSCORE.showLoadingAnimation();
+
+ /* chrome.fileSystem.chooseEntry({ type: "openDirectory" }, function(d) {
+ if (!d) return;
+ var reader = d.createReader();
+ reader.readEntries(function(list) {
+ console.log("Chrome FS: "+list);
+ });
+ }); */
+
if(nativeIO.isDirectory(dirPath)) {
var dirList = nativeIO.getDirEntries(dirPath);
var anotatedDirList = [];