Dear Sir,
Thank you for your response.
There is something I don't understand, when you say that : *It is expected
behavior and not a bug*.
Because, with the same piece of code, we get 2 different behaviors,
depending if we are using JSch 0.1.34 ( or previous ) or if we are using
JSch 0.1.35 (or subsequent). I'll try to explain again:
- using JSch 0.1.34, if I trie to list a directory, using this code:
*ChannelSftp.ls(/out/MIPFER*.CTL)*
* *
If the directory does not have the requested file(s), I don't get any error,
or exception. It simply does not return anything.
But if I am using JSch 0.1.35, with the same code, and if the directory
does not have the requested file, I get an exception:
No such file: /out/MIPFER*.CTL
at com.jcraft.jsch.ChannelSftp.ls(ChannelSftp.java:1318)
Now, my question is: why 2 different behaviors with the same code? What
changed since the release of JSch 0.1.35, that is making our applications to
get this exception that we dint get in previous releases?
We did not change the code, we only upgraded from 0.1.34 to 0.1.35 and
started to have problems. Then downgraded again to 0.1.34 and the problem
vanished. We have been using JSch since 0.1.26 and we never had this
problem, until we got to 0.1.35. and since then, all the new releases had
the same situation.
Best Regards
2008/6/16 Atsuhiko Yamanaka <[EMAIL PROTECTED]>:
> Hi,
>
> +-From: "Xamag Productions" <[EMAIL PROTECTED]> --
> |_Date: Mon, 16 Jun 2008 06:37:31 +0200 ___________
> |
> |Since the release of JSch 0.1.35 ( and subsequents) , we are having
> |problems, trying to list directories, looking for a specific file. For
> |instance if I try to do :
> ...
> |We look forward to ear from you, having this problem solved.
>
> There is no plan to change that behavior.
> It is expected behavior and not a bug.
>
> There should be several reasons for errors in getting 'ls';
> "No such file", "Permission denied", "session crash", ,etc.
> and 'empty' list is not informative.
>
>
> Sincerely,
> --
> Atsuhiko Yamanaka
> JCraft,Inc.
> 1-14-20 HONCHO AOBA-KU,
> SENDAI, MIYAGI 980-0014 Japan.
> Tel +81-22-723-2150
> +1-415-578-3454
> Fax +81-22-224-8773
> Skype callto://jcraft/
>
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
JSch-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jsch-users