Reputation: 122052
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.
Upvotes: 49
Views: 46594
Reputation: 1
If you are using MAC OX, and you have more than one profile on your chrome, or you cannot find default in the path, replace default
with profile
. But depending on number of profiles you have, it could be profile 1
, profile 2
, etc
Upvotes: 0
Reputation: 24109
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:
filesystem:
URLs.about:flags
, restart, hit the gear in the devtools (lower right corner), and enable the 'FileSystem inspection' under the experimental tab. Upvotes: 45
Reputation: 6934
I saved a file called log.txt on MAC
It ended up at ~/Library/Application\Support/Google/Chrome/Default/Storage/ext/panbljeniblfmcakpphmjmmnpcaibipi/def/File\ System/iso/p/00/
with file name 00000 and no ext
Upvotes: 2
Reputation: 19073
On Windows XP, it is here: c:\Documents and Settings\USERNAME\Local Settings\Application Data\Google\Chrome\User Data\Default\File System\
.
On Windows 7, the location is C:\Users\USERNAME\AppData\Local\Google\Chrome\User Data\Default\File System
.
It's not very useful to browse it because file and dir names are obfuscated (but content in files is unchanged).
As ebidel wrote the best way is using browser of filesystem:
urls that incorporated into Chrome. It's excellent! You can get the url using fs.root.toURL()
where fs
is a FileSystem object that you get, for example, from window.webkitRequestFileSystem()
.
Upvotes: 18
Reputation: 4203
Just for completeness: on linux it goes into ~/.config/google-chrome/Default/File\ System/
Upvotes: 20
Reputation: 122052
Seems like the filesystem storage is encoded to prevent exactly what was trying to do. I ended up writing a very simple file manager available here. Start up any web server (I like mongoose for its 0 setup) and go to the /filemanager.html route
Upvotes: 6