Chrome 上的文件 API - 目录和文件系统是否有类似于 appcache 的 chrome://appcache-interanals 的内部 URL?
我一直在使用 Chrome 浏览 HTML5 离线网络应用程序和文件 API。在查看了男孩和女孩在 html5rocks 上所做的事情之后, 我想知道是否有办法找到有关文件系统/沙箱的更多信息?
例如: - 文件/沙箱存储在磁盘上的哪个位置? - 有多少空间是可用/已用的? - 数据是否加密?
我希望有一个类似于 chrome://appcache-internals 的内部 Chrome url,它允许您管理离线网络应用程序的应用程序缓存。
I have been playing with HTML5 Offline web apps and the File API using Chrome. After looking at what the guys and girls have done at html5rocks,
I was wondering if there is a way to find out more information about the file system/sandbox?
For example:
- Where on disk is the files/sandbox being stored?
- How much space is free/used?
- Is the data encrypted?
I am hoping for an internal Chrome url similar to chrome://appcache-internals which allows you to manage the appcache for an offline web app.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
chrome://quota-internals 是类似于 chrome://appcache-internals 的文件 API(以及其他一些片段)。事实上,由于 Chrome 中的 appcache 是配额管理的,我想 appcache-internals 会在未来的某个时候消失,完全被配额管理页面取代。
它似乎在当前的开发频道版本中被破坏,但它正在树尖中工作,所以我确信它很快就会再次可用。 :)
chrome://quota-internals is the file API (as well as a few other bits and pieces) analog to chrome://appcache-internals. In fact, since appcache is quota-managed in Chrome, I imagine that appcache-internals will go away at some point in the future, replaced entirely by a quota management page.
It appears to be broken in the current dev channel release, but it's working in tip-of-tree, so I'm sure it'll be available again soon. :)
感谢这本书使用 Html5 文件系统 API(作者:Eric Bidelman),如果您转到“ chrome://settings/cookies”搜索您的网址,您可以找到有关本地文件系统的配额和使用统计信息。
以下代码片段也打印出此信息:
Thanks the the book Using Html5 Filesystem API (by Eric Bidelman), if you go to "chrome://settings/cookies" search for your url you can find quota and usage stats about the local filesystem.
The following code snippet also prints out this info: