SFTPFileNotFoundException on SSHSFTPClient.close
Tom Quarendon
tomq at teamwpc.co.uk
Tue May 10 16:22:31 MEST 2005
I'm uploading a file using SSH2SFTPClient by calling
open
writeFully
close
The upload appears to be successul in that the file appears and I can
open it successfully. However the close call throws an
SFTPFileNotFoundException :
[ssh] com.mindbright.ssh2.SSH2SFTP$SFTPNoSuchFileException
[ssh] at com.mindbright.ssh2.SSH2SFTPClient.checkType(Unknown
Source)
[ssh] at
com.mindbright.ssh2.SSH2SFTPClient.transmitExpectReply(Unknow
n Source)
[ssh] at com.mindbright.ssh2.SSH2SFTPClient.close(Unknown Source)
I'm ignoring this exception, as it appears that it all works anyway.
Should I be calling close in this way?
Cheers.
Tom Quarendon.
More information about the Mindterm-users
mailing list