SFTP File Delete problem

Help
prashan_w
2007-01-18
2013-02-24
  • prashan_w

    prashan_w - 2007-01-18

    Hi,

    I'm having a problem deleting a file from a SFTP server using the following method:

    net.sf.jftp.net.SftpConnection.removeFileOrDir()

    I get a 'Permission Denied' error from the API even though the permissions have been set properly. I have tried deleting the file using another FTP client (FileZilla) and from that it successfully deletes the file without any errors.

    The stack trace follows:

    java.io.IOException: Permission denied
        at com.sshtools.j2ssh.sftp.SftpSubsystemClient.getOKRequestStatus(SftpSubsystemClient.java:881)
        at com.sshtools.j2ssh.sftp.SftpSubsystemClient.removeFile(SftpSubsystemClient.java:595)
        at com.sshtools.j2ssh.sftp.SftpFile.delete(SftpFile.java:87)
        at net.sf.jftp.net.SftpConnection.removeFileOrDir(SftpConnection.java:208)

    Please help me with this issue cause, I'm stuck at this point with no alternatives.

    Thanks,

    Prashan.

     
    • Cyberdemon

      Cyberdemon - 2007-03-15

      This should be resolved now (1.50-pre1).

       

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks