A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
RabbitMQ in Depth
this week in the
Java in General
J2SSH - SFTPFile
Joined: Aug 21, 2004
Jul 08, 2005 05:49:00
I am using the J2ssh API, I have written a
code to get an Sftpfile as:
sftpClient = ssh.openSftpClient();
List list = sftpClient.ls();
SftpFile sftpfile = (SftpFile) list.get(2);//get single SftpFile
SftpFileInputStream br = new SftpFileInputStream(sftpfile);
when I run the program, I get following error,
: The file does not have a valid handle!
Can somebody help me out..
Thanks in advance !!!
Mr. C Lamont Gilbert
Joined: Oct 05, 2001
Jul 11, 2005 12:39:00
Maybe you need to open the file first? Who do the various file checks say about the files existence and whatnot?
I agree. Here's the link:
subject: J2SSH - SFTPFile
Java API for connecting to SFTP server
getReplyString() equivalent method for j2ssh
Help on sequential method execution
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015