title: Cordova's FileTransfer Writing Error (Code 1)
body: <p>I'm using Cordova 4.2.0 for Android.</p>
  
  <p>I have some troubles to get <a href="https://github.com/apache/cordova-plugin-file-transfer" rel="noreferrer"><em>FileTransfer plugin</em></a> work properly. I suppose that there is a writing error</p>
  
  <pre><code>exception:".myApp\/contentImages\/20150110220101.jpg: open failed: ENOENT (No such file or directory)"
  </code></pre>
  
  <p><em>filename</em> was previously tested and does not exist yet:</p>
  
  <pre><code>rootFS.getFile('.myApp/contentImages/'+file,{create:false},
      function(){
          console.log(file+' already exists');
      },
      function(error){
          console.log(file+" does not exist locally");
          console.log("Error #"+error.code);
          download(file);
      }
  );
  </code></pre>
  
  <p>And here is the download function:</p>
  
  <pre><code>function download (filename){
      var localPath = rootFS.fullPath+'/.myApp/contentImages/'+filename;
      var fileTransfer = new FileTransfer();
      fileTransfer.download(
          encodeURI('http://distantApp/contentImages/'+filename), // This file exists
          localPath,
          function(entry) {
              console.log("download complete: " + entry.fullPath);
          },
          function (error) {
              console.log('download error: ' + error.code + ": "+error.exception+" ; source " + error.source+" ; target " + error.target);
          }
      );
  }
  </code></pre>
  
  <p>What could be the problem?</p>
  
  <p><strong><em>EDIT</em></strong>
  Code for <code>rootFS</code></p>
  
  <pre><code>function onDeviceReady(){
      window.requestFileSystem  = window.requestFileSystem || window.webkitRequestFileSystem;
      window.requestFileSystem(LocalFileSystem.PERSISTENT, 0, gotFS, function(){
          console.log("error requesting LocalFileSystem");
      });
  }
  function gotFS(fileSystem) {
      console.log("got filesystem: "+fileSystem.name); // displays "persistent"
      console.log(fileSystem.root.fullPath); // displays "/"
      window.rootFS = fileSystem.root;
  }
  </code></pre>