Chrome extensions with text files [closed]

杀马特。学长 韩版系。学妹 提交于 2019-12-01 14:10:51

That would sadly be not easy or downright impossible - a Chrome Extension cannot get read/write permissions for the real filesystem.

A Chrome App on the other hand can, using chrome.fileSystem API.

Your options:

  1. Make a Chrome App instead. Might not be possible if you need browser integration.
  2. Make an extension and a Chrome App that talk to each other, letting the Chrome App handle the file operations. Complicated install, but maximum flexibility.
  3. Make an extension that uses a Native Host module to do operations with the filesystem. It will be even more complicated install, but UNLIMITED POWER.
  4. Make an extension that works with its own virtual filesystem; if the user needs a file, you can use chrome.downloads API to export it.
  5. Make an extension that works with some sort of cloud storage solution, e.g. with files in Dropbox.
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!