title: how to read images names form cordova.file.tempDirectory using Ng-Cordova
body: <p>We want read images names form <code>cordova.file.tempDirectory</code> using file plugin we tried like this </p>
  
  <pre><code> $cordovaFile.readAsText(cordova.file.tempDirectory)
              .then(function (success) {
                   console.log("success2"+success);
                    }, function (error) {
                        console.log("error"+error);
                    });
  But We got error
  
  
  ERROR: Wrong type for parameter "path" of DirectoryEntry.getFile: Expected String, but got Undefined.
  2016-08-25 09:23:28.958 DPOD[3482:38292] Error in Success callbackId: File1548160221 : TypeError: Wrong type for parameter "path" of DirectoryEntry.getFile: Expected String, but got Undefined.
  </code></pre>
  
  <p>cordova.file.tempDirectory have only 10 images.So we need 10images name.tell me what wrong in our code.Please guide to us.</p>