title: Apache Cordova File API via Windows Phone
body: <p><br />
  I have tried to use Apache Cordova File Plugin <a href="http://cordova.apache.org/docs/en/2.5.0/cordova_file_file.md.html" rel="nofollow">documentation</a> <br />
  Here is my code. It just basically goes through all folders into file system. <br /></p>
  
  <pre><code>function log(text) {
          var element = document.createElement('div');
          element.innerHTML = text;
  
          document.getElementById("log").appendChild(element);
      }
  
  
      function onSuccess(fileSystem) {
  
          function printEntries(entries) {
              log("Enter printEntries function");
  
              var i;
              log("Number of entries" + entries.length);
              for (i = 0; i &lt; entries.length; i++) {
                  log("Interation number " + i);
                  if (entries[i].isFile) {
                      log(entries[i].name);
                  } else {
                      log("Moving into subdirectory name: " + entries[i].name);
                      entries[i].createReader().readEntries(printEntries, fail);
                  }
              }
          }
  
          function fail(error) {
              log("Failed to list directory contents: " + error.code);
          }
  
          // Get a directory reader
          var directoryReader = fileSystem.root.createReader();
  
          // Get a list of all the entries in the directory
          directoryReader.readEntries(printEntries, fail);
      }
  
      // request the persistent file system
      window.requestFileSystem(LocalFileSystem.PERSISTENT, 0, onSuccess, null);
  </code></pre>
  
  <p>When I deploy my application to the my Lumia I have only this directories:<br />
   /<br />
    -Shared <br />
       ---Media <br />
       ---ShellContent <br />
       ---Transfers <br />
    -debugOutput.txt <br />
    -DeviceID.txt <br /></p>
  
  <p>It seams that I have no access to files, that stored on my phone (images, videos).</p>
  
  <p>So, my question is: Is it possible to get files from phone file system and sd card?</p>