I work with Phonegap / Cordova 2.2
I am trying to read the contents of a subdirectory but cannot figure out how to do this.
Here is my code:
window.requestFileSystem(LocalFileSystem.PERSISTENT, 0, onFileSystemSuccess, fail); function onFileSystemSuccess(fileSystem) { var tmpPath = "dir1/dir2/"; fileSystem.root.getDirectory(tmpPath, {create: false, exclusive: false}, getDirSuccess, fail); } function getDirSuccess(dirEntry) {
If I get only one directory path, then it works, if I try to get a path with two directories, it fails.
Any help would be greatly appreciated.
thanks
source share