Hi All.

I have one more question. In org.apache.sshd.client.sftp.DefaultSftpClient
there are two functions

    public DirEntry[] readDir(Handle handle)

and

    Iterable<DirEntry> readDir(final String path)

When the directory is empty the first one return null instead of empty
array
the second one does not. Wouldn't be better if readDir(Handle handle)
returned
empty array, which could be done by changing just one line ( line 520 ) in
the
DefaultSftpClient.java ?

Also, I noticed that there does not seem to be much of the javadoc
documentation
in both SftpClient and DefaultSftpClient classes. Thus it was not
completely clear if
readDir(...) could return null or not. Is that something that could
remedied? I would
offer you my help in writing javadoc but I do not think that I have much of
knowledge
of internals of you code.

--
Dmitri Priimak

Reply via email to