如何使用chrome扩展文件系统api? [英] How to use chrome extension filesystem api?
本文介绍了如何使用chrome扩展文件系统api?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
>
作为文本
并写入?有没有关于chrome.fileSystem的任何例子?
注意:我不想问文件路径到用户
解决方案
已在 Chrome扩展HTML文件系统访问,我想。请注意, chrome.fileSystem
只存在于应用程序中,而不是扩展名。
要只读取文件,请尝试询问 file:/// *
主机权限。
Hi as example i want to read
c:/x.txt
as text
and write? is there any example about chrome.fileSystem ?
Notice : I don't want to ask the path of file to user
解决方案
Already answered at Chrome Extension HTML Filesystem Access, I think. Note that chrome.fileSystem
only exists in apps, not extensions.
To just read files, try asking for the file:///*
host permission.
这篇关于如何使用chrome扩展文件系统api?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文