Skip to content

Instantly share code, notes, and snippets.

@mladenp
Created December 7, 2015 22:28
Show Gist options
  • Save mladenp/4a6a912d47df10d57d20 to your computer and use it in GitHub Desktop.
Save mladenp/4a6a912d47df10d57d20 to your computer and use it in GitHub Desktop.
cordova list all dirs
function listDir(path){
window.resolveLocalFileSystemURL(path,
function (fileSystem) {
var reader = fileSystem.createReader();
reader.readEntries(
function (entries) {
console.log(entries);
},
function (err) {
console.log(err);
}
);
}, function (err) {
console.log(err);
}
);
}
listDir(cordova.file.applicationDirectory + "www/");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment