title: Error when trying to copy file
body: <p>I'm trying to copy a temp file to another location using NSFileManager. However it's failing and complaining that one of the files does not exists.</p>
  
  <pre><code> //Copy temp file
      NSError *error;
      BOOL exists = [fileManager fileExistsAtPath:chapterFileTemp];
      exists = [fileManager fileExistsAtPath:chapterFile];
  
      [fileManager copyItemAtURL:[NSURL fileURLWithPath:chapterFileTemp]
                           toURL:[NSURL fileURLWithPath:chapterFile]
                           error:&amp;error];
  
      //Delete temp path
      [fileManager removeItemAtURL:[NSURL fileURLWithPath:chapterFileTemp] error:&amp;error];
  </code></pre>
  
  <p>I'm getting error at copy operation </p>
  
  <p>(Error Domain=NSCocoaErrorDomain Code=260 "The operation couldn’t be completed. (Cocoa error 260.)" UserInfo=0x1c5190b0 {NSFilePath=/var/mobile/Applications/57727CCD-88AD-4D84-8C78-EA8100645C9B/Documents/119/myFileTemp.temp, NSUnderlyingError=0x1c527960 "The operation couldn’t be completed. No such file or directory"). </p>
  
  <p>Now the first BOOL returns YES, and the second one NO. Which is expected.</p>
  
  <p>What could be the reason for failure</p>
  
  <p>Thanks.</p>