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

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

问题描述

window.PERSISTENT 选项中执行 webkitRequestFileSystem 在 Google Chrome 中,文件会写入文件系统的哪个位置?我想在构建和调试此应用时将文件放在那里,并让 Chrome 与它们进行交互.

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.

推荐答案

对我来说,至少在 Mac OSX 上,它们存储在 /Users/USERNAME/Library/Application Support/Google/Chrome/Default/文件系统 对我来说.如果您使用配置文件,则会有配置文件目录而不是 Default.但是,每个源的保存文件/文件夹都在您不易与之交互的目录下进行了混淆.

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.

要调试 Filesystem API,您有几个选择:

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

  1. 使用此扩展程序查看/删除文件.
  2. 请参阅此处的提示:http://updates.html5rocks.com/2011/08/调试文件系统 API这包括使用 filesystem: URL 非常轻松地查看存储的文件.
  3. 删除文件系统 Playground 演示 (http://html5-demos.appspot.com/static/filesystem/filer.js/demos/index.html) 进入您的来源.您可以使用它轻松查看/重命名/删除文件/文件夹.
  4. Chrome DevTools 现在支持 Filesystem API,用于查看存储在源下的文件.要使用它,您需要在 about:flags 中启用开发者工具实验,重新启动,点击 devtools 中的齿轮(右下角),并启用实验选项卡下的文件系统检查".
  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.

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

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