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.
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
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).