Hi,

If I'm not mistaken ChannelSftp.ls(String path) throws an SftpException when 
the folder (i.e. path) is empty instead of returning either null or an empty 
Vector.

Is there a good reason for this? That's just completely not what one would 
expect. And the message given ('No such file: "+path) does indicate that the 
directory given with the path does not exist, instead of indicating that the 
directory's empty.

Why would you do that? I figure under other circumstances, that's the right way 
to go, but under mine, it's complete nonsense (IMHO).

Regards,
Sandro


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
JSch-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jsch-users

Reply via email to