【发布时间】:2013-10-08 01:57:12
【问题描述】:
我一直在尝试将此 Chrome 代码与 chooseEntry 类型作为“openDirectory”一起使用,但我认为它尚未实现,所以我想知道是否已经有其他方法可以做到这一点。
manifest.json:
"permissions": [
"notifications",
{"fileSystem": ["write", "directory"]}
],
Javascript:
chrome.fileSystem.chooseEntry({type:'openDirectory'},function(userDirEntry){
/*fill with files*/
});
这是我得到的:
> Uncaught Error: Invalid value for argument 1. Property 'type': Value must be one of: [openFile, openWritableFile, saveFile].
【问题讨论】:
标签: javascript directory filesystems google-chrome-app