Closed nazar-pc closed 10 years ago
The SD card doesn't have very nice support in the simulator at the moment.
Read this bug to follow the current state. If you create the fake-sdcard
directory that the bug mentions and add some file, does it work then?
Yes, creation of fake-sdcard
works!
But how to enumerate directories?
I need basic natural features to work with file system.
The docs I can find about the Device Storage API suggests to me that it does not support nested directories, only a flat list of files per storage area. However, I am not sure. Try the #openwebapps room on Mozilla IRC, or the dev-webapps
mailing list for more info.
I'm using snippet from this article: https://developer.mozilla.org/en-US/docs/Web/API/DeviceStorage.enumerate
But get error
"TypeMismatchError"
with 1.4 and 2.1 versions of simulator. Sorry if this is a stupid question, I only want to get list of files and directories, and reading a lot of articles I still can't do that.If use
music
instead ofsdcard
everything works fine.Permissions in manifest: