Jsch & Windows

Max
2014-03-14
2014-03-14
  • Max
    Max
    2014-03-14

    Hi,
    I am using jsch-0.1.50.zip with apache mina running on Windows 7. Whenever I try to do an ls I get an SftpException with "4" and nothing else. I tried to debug and see that its failing on
    SftpATTRS attr=_stat(upath); in ChannelSftp.java (line 1566).

    I can execute a put command successfully, but can't do an 'ls'. I've tried

    /blah/blah/
    /blah/blah
    c:\blah\blah
    c:\blah\blah\ c:/blah/blah
    c:/blah/blah\

    If I scp from my windows box to a linux box, then it works successfully. Can anyway help with this?

    Thanks.