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
<[email protected]> 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
[email protected] | http://www.hannonhill.com

------------------------------------------------------------------------------
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
_______________________________________________
JSch-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jsch-users

Reply via email to