Answers for "cordova read file in www folder"

0

cordova read file in www folder

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);
    }
  );
}
//example: list of www/ folder in cordova/ionic app.
listDir(cordova.file.applicationDirectory + "www/");
Posted by: Guest on August-21-2020

Code answers related to "cordova read file in www folder"

Code answers related to "Javascript"

Browse Popular Code Answers by Language