FileSystem API:位于哪里的文件和文件夹 [英] FileSystem API: Where are the files and folders located

查看:473
本文介绍了FileSystem API:位于哪里的文件和文件夹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在开发Chrome应用程序,需要访问本地文件和导演。我的问题是当我创建一个文件或文件夹他们位于何处?
该扩展程序当前位于我的主目录中,创建的文件不在扩展目录中。 文件系统API是虚拟的,因为你无法将文件完全存储在客户端的计算机上。您只能通过JavaScript真正访问它们。



尽管如此,它们以不同的文件名存储在几个目录(具有非直观的名称)中:

 %appdata%\Local\Google\Chrome\User Data\Default\File System 

其中%appdata%是eg C:\Users\xxx\AppData (在Vista上)。


I'm currently developing a chrome app and need to access local files and directorys. My question is when I create a file or folder where are they located? The extension is currently in my home directory and the created files aren't in the extension directory.

解决方案

The file system API is "virtual" in that you cannot store the files entirely literally on the client's computer. You can only really access them via JavaScript.

Nevertheless, they are stored with different filenames in several directories (having non-intuitive names) in:

%appdata%\Local\Google\Chrome\User Data\Default\File System

Where %appdata% is e.g. C:\Users\xxx\AppData (on Vista).

这篇关于FileSystem API:位于哪里的文件和文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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