我正在尝试创建一个chrome扩展,它在本地目录中扫描新文件......但是,如果我将清单://*权限添加到清单中,我可以访问chrome的内部文件浏览器
xmlhttp.open("GET","file://C:/Users/username/Desktop/",false);
xmlhttp.send();
console.log(xmlhttp.response);
从响应中,我可以提取文件URL并在我的扩展中使用它们.
我现在的问题是:还有其他方法吗?如果chrome的文件浏览器被更改,上面的方式似乎更像是一种解决方法并且容易中断...
javascript filesystems html5 google-chrome google-chrome-extension