title: Apache VFS SFTP moveTo command fails
body: <p>I am using Apache vfs sftp to copy a file to remote linux box and then rename it.
  copy works fine, but when  i try to rename the file, it fails.
  I am using vfs 2.0 and jsch 0.1.50</p>
  
  <pre><code>Source(remoteFileTmp)       : /tmp/abc.txt
  Destination(remoteFileDest) : /home/myName/work/abc.txt
  </code></pre>
  
  <p>Command that I used is as below:</p>
  
  <pre><code>remoteFileTmp.moveTo(remoteFileDest);
  </code></pre>
  
  <p>The exception that i get is as below:</p>
  
  <pre class="lang-java prettyprint-override"><code>Exception in thread "main" java.lang.RuntimeException: org.apache.commons.vfs2.FileSystemException: Could not rename "sftp://hostname/tmp/abc.txt" to "sftp://hostname/home/myName/work/abc.txt".
      at com.transfer.SFTPTransfer.uploadRename(SFTPTransfer.java:85)
      at com.transfer.MainClass.main(MainClass.java:23)
  Caused by: org.apache.commons.vfs2.FileSystemException: Could not rename "sftp://hostname/tmp/abc.txt" to "sftp://hostname/tmp/abc.txt" to "sftp://hostname/home/myName/work/abc.txt".
      at org.apache.commons.vfs2.provider.AbstractFileObject.moveTo(AbstractFileObject.java:1116)
      at com.transfer.SFTPTransfer.uploadRename(SFTPTransfer.java:59)
      ... 1 more
  Caused by: 4: Failure
      at com.jcraft.jsch.ChannelSftp.throwStatusError(ChannelSftp.java:2833)
      at com.jcraft.jsch.ChannelSftp.rename(ChannelSftp.java:1910)
      at org.apache.commons.vfs2.provider.sftp.SftpFileObject.doRename(SftpFileObject.java:289)
      at org.apache.commons.vfs2.provider.AbstractFileObject.moveTo(AbstractFileObject.java:1102)
      ... 2 more
  </code></pre>
  
  <p>Directory /home/myName/work exists.</p>
  
  <p>Note: when i try to move (rename) files in the same folder it works fine.
  i.e for the below input rename is succesfful.</p>
  
  <pre><code>source = /tmp/abc.txt
  destination = /tmp/abc.txt_renamed
  </code></pre>
  
  <p>So is it that it supports rename only within the same directory?</p>