title: copyTo gives error code 1
body: <p>I am having trouble finding the error im making. Im getting the right entries and paths through out my code, i think, but still it goes into the movingError in the addFileToDirectory function.</p>
  
  <p>Here is the code im having trouble with:</p>
  
  <pre><code>function addToFileSystem(entry){
    window.resolveLocalFileSystemURL(entry, onPhotoURISuccess, movingError);
  }
  
  function onPhotoURISuccess(entry){
    console.log('1.1');
    fileEntry = entry
    window.requestFileSystem(LocalFileSystem.PERSISTENT, 0, createOrSelectDirectory, movingError);
    console.log('1.2');
  }
  
  function createOrSelectDirectory(fileSys){
    console.log('2.1');
    var myFolderName = 'photos';
    fileSys.root.getDirectory(myFolderName, {create:true}, addFileToDirectory, movingError);
    console.log('2.2');
  }
  
  function addFileToDirectory(directory){
    console.log('3.1');
    var date = new Date();
    var fileName = date.getTime();
    var newFileName = fileName + '.jpg';
    console.log('newFileName:' + newFileName + ', directory: ' + directory.toURL() + ', fileEntry: ' + fileEntry.toURL());
    fileEntry.copyTo(directory, newFileName, OnMoveSuccess, movingError);
    console.log('3.2');
  }
  
  function OnMoveSuccess(fileEntry){
    console.log(fileEntry.toURL() + ' moved successfully');
  }
  
  function movingError(error) {
    console.log('error occoured while moving file with error code: ' + error.code);
  }
  </code></pre>
  
  <p>Output in the console:</p>
  
  <pre><code>2014-04-03 09:33:29.678 HelloWorld[274:60b] 1.1
  2014-04-03 09:33:29.683 HelloWorld[274:60b] 1.2
  2014-04-03 09:33:29.685 HelloWorld[274:60b] 2.1
  2014-04-03 09:33:29.693 HelloWorld[274:60b] 2.2
  2014-04-03 09:33:29.694 HelloWorld[274:60b] 3.1
  2014-04-03 09:33:29.695 HelloWorld[274:60b] newFileName:1396510409691.jpg, directory: cdvfile://localhost/persistent/photos/, fileEntry: cdvfile://localhost/temporary/cdv_photo_014.jpg
  2014-04-03 09:33:29.699 HelloWorld[274:60b] 3.2
  2014-04-03 09:33:29.700 HelloWorld[274:60b] error occoured while moving file with error code: 1
  </code></pre>
  
  <p>I did try to remove some of the movingError to check where it was called, and its from the fileEntry.copyTo.</p>
  
  <p>I have the file plugin installed aswell.</p>
  
  <p>This is for IOS btw.</p>