Using JavaScript (not native code), is it possible to read folders and files from the www
folder where, for example, phonegap.js
is?
I've managed to read file contents with AJAX calls, but I'd like to know if there is a different way. Besides, you can't read folders like that.
From what I've seen, the File
and FileEntry
APIs that PG exposes only work on Persistent or Temporary locations on disk. I can't seem to be able to specify any location I want.
So, is there a way to do that with JS?