title: How to move an already moved file to new directory
body: <p>I am trying to move a single File between folders. I use file.renameTo() to move my file. </p>
  
  <pre><code>//moving the file to new folder
  //this is success 
  boolean fileMoveCompleted = finalFileToProcess
                          .renameTo(new File(processingFolderName
                                  + File.separator + finalFileToProcess.getName()));
  
  //now trying to move the renamed file to another folder
  //this is failing
   fileMoveCompleted = finalFileToProcess
                                  .renameTo(new File(successFolderName
                                          + File.separator
                                          + finalFileToProcess.getName()));
  </code></pre>
  
  <p>After the first <code>renameTo</code> the file path still points to the older path. Is there any way I can move the same file to another directory ? </p>