Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
2.2k views
in Java FTP by
In edtFTPj/PRO-1.2.7 FTPClientInterface is implemented by FTPClient, SSLFTPClient, and SSHFTPClient. However, the behavior of dir() differs for SSHFTPClient in that names "." and ".." (and other ".xxx" files) are returned. As I recall this is not the case with FTPClient and SSLFTPClient. Is this behavioral difference something permanent, or is a common behavior intended for all implementations?

1 Answer

0 votes
by (51.6k points)
This is actually due to the servers returning different listings; our clients simply return to you what the server provides them. In your case, the SFTP server you are connecting to is returning '.' and '..', and the FTP/FTPS server is not, but you may find different behavior on different SFTP and FTP/FTPS servers. We could perhaps explicitly remove '.' and '..' from the listings since they would rarely be required. We'll consider this.

- Hans (EDT)

Categories

...