SftpFile rename not working

wyangw Pie
  • wyangw Pie

    wyangw Pie - 2008-09-18

    Could you please help here: the file is copied over to destination folder, but rename failed.


    2125 [main] INFO com.sshtools.j2ssh.sftp.SftpSubsystemClient - Received response
    java.io.IOException: No such file
        at com.sshtools.j2ssh.sftp.SftpSubsystemClient.getOKRequestStatus(Unknown Source)
        at com.sshtools.j2ssh.sftp.SftpSubsystemClient.renameFile(Unknown Source)
        at com.sshtools.j2ssh.sftp.SftpFile.rename(Unknown Source)

    • Sascha Hunold

      Sascha Hunold - 2008-09-18

      I never tried to use the method of SftpFile. I will have a look.

      Try using the rename method of SftpClient. That will do for now.


Log in to post a comment.