PERSISTENT文件系统存储在哪里用chrome存储? [英] Where does PERSISTENT file system storage store with chrome?

查看:200
本文介绍了PERSISTENT文件系统存储在哪里用chrome存储?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

webkitRequestFileSystem 时>谷歌浏览器中的window.PERSISTENT 选项,我的文件系统上的哪些文件被写入?我希望在那里放置文件,并在构建和调试此应用程序时使Chrome与它们交互。

至少在Mac OSX上,对于我来说,它们存储在 / Users / USERNAME / Library / Application Support / Google / Chrome / Default / File System 下。如果您正在使用配置文件,则会有配置文件目录而不是默认。但是,每个源文件保存的文件/文件夹在目录下都是混淆的,这些文件不会很容易与之交互。

调试Filesystem API有几个选项:


  1. 使用此扩展程序 a>查看/删除文件。

  2. 查看这里的提示: http://updates.html5rocks.com/2011/08/Debugging-the-Filesystem-API
    这包括使用文件系统非常容易地查看存储的文件: URLs。

  3. 删除Filesystem Playground演示(http://html5-demos.appspot.com/static/filesystem/filer.js/demos/index.html )。您可以使用它轻松查看/重命名/删除文件/文件夹。
  4. 现在,Chrome DevTools支持Filesystem API来查看存储在原始文件中的文件。要使用它,你需要在中启用开发者工具实验:flags ,重启,打开devtools(右下角)的设备,启用FileSystem检查下的实验标签。


When doing webkitRequestFileSystem in window.PERSISTENT option in Google Chrome, where on my filesystem do files get written? I'd like to drop files there and have Chrome interact with them while I'm building and debugging this app.

解决方案

For me, at least on Mac OSX, they're stored under /Users/USERNAME/Library/Application Support/Google/Chrome/Default/File System for me. If you're using profiles, there will be profile directories instead of Default. However, each origin's saved files/folders are obfuscated under directories that won't be easy for you to interact with.

For debugging the Filesystem API, you have a few options:

  1. Use this extension to view/remove files.
  2. See the tips here: http://updates.html5rocks.com/2011/08/Debugging-the-Filesystem-API That includes viewing stored files very easily using the filesystem: URLs.
  3. Drop the Filesystem Playground demo (http://html5-demos.appspot.com/static/filesystem/filer.js/demos/index.html) into your origin. You can use that to view/rename/delete files/folders easily.
  4. Chrome DevTools now has support for the Filesystem API for viewing the files stored under an origin. To use that, you will need to enable the Developer Tools experiments in about:flags, restart, hit the gear in the devtools (lower right corner), and enable the 'FileSystem inspection' under the experimental tab.

这篇关于PERSISTENT文件系统存储在哪里用chrome存储?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆