Created
December 7, 2015 22:28
-
-
Save mladenp/4a6a912d47df10d57d20 to your computer and use it in GitHub Desktop.
cordova list all dirs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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