Re: [JSch-users] response code 10 to ChannelSftp.ls command
Status: Alpha
Brought to you by:
ymnk
From: Bradley W. <bra...@ha...> - 2010-08-19 22:08:08
|
Specifically, this is happening when connecting to a Titan FTP server. I was able to determine that there appear to be different responses depending what is passed to "ls". For example, if neither "files" nor "files/js" directories exist, then ls("files/js") gives: "10: No such path"and the stacktrace below. However, if you just do ls("files"), you'll get a response code of 2 which ChannelSftp calls SSH_FX_NO_SUCH_FILE. Is this response code of 10 even a valid SFTP response code? On Mon, Aug 16, 2010 at 5:10 PM, Bradley Wagner <bra...@ha...> wrote: > > Hi, we ran into an issue today where we were getting back an > unexpected response code from the ChannelSftp.ls command: > > Caused by: 10: No such path. > at com.jcraft.jsch.ChannelSftp.throwStatusError(ChannelSftp.java:2289) > at com.jcraft.jsch.ChannelSftp._stat(ChannelSftp.java:1741) > at com.jcraft.jsch.ChannelSftp._stat(ChannelSftp.java:1758) > at com.jcraft.jsch.ChannelSftp.ls(ChannelSftp.java:1196) > at com.hannonhill.cascade.model.publish.transmit.SFTPShuttle.mkdirIfNecessary(SFTPShuttle.java:378) > ... 13 more > > We were depending on getting back ChannelSftp.SSH_FX_NO_SUCH_FILE when > the file/directory didn't exist. > > I looked for both the error code and message in the ChannelSftp class > and could find neither. > > Any ideas? > > Thanks, > Bradley -- Hannon Hill - Put Us to the Test bra...@ha... | http://www.hannonhill.com |