You can also save one step in Simon's code if you just want to get a proof of concept, since fileSystem.root is already dirEntry (and this saves you a potentially buggy step when using a directory name, such as "Music", which may or may not be) :
function onFileSystemSuccess(fileSystem) { var directoryReader = fileSystem.root.createReader();
which works for me.
However, I get the contents of the application root directory, apparently my application is called be.qan.blaActivity, so if I ask for its fileSystem.root.name
, it will tell me "be.qan" and fileSystem.root.path
is undefined. So my question here is: how can I get out of this sandbox if it is really what I'm sitting in and can I access the sd_card directories or other parts of the file system (since iOS still doesnβt even have external storage) ?
What I get as file names in readerSuccess
are names like "databases", "app_database", "cache" and "lib" that don't even appear when I search using Astro FileManager, so I strongly believe that they are part of the virtual file system created by Cordor for an application or so. Probably, I still have a lot of things that are missing, and people are more knowledgeable than I can establish me directly, but this is what I guess so far.
source share