rdp4j icon indicating copy to clipboard operation
rdp4j copied to clipboard

Not connecting to the FTP server

Open shwethama opened this issue 8 years ago • 2 comments

FtpDirectory implements PolledDirectory has listFiles() to get the connection but its not called in the FTPUser class.How the connection is established ???? I am getting the FTPDirectory has com.dt.ftpaccess.FtpDirectory@330bedb4 when I tried to print DirectoryPoller.getPolledDirectories()

shwethama avatar Mar 09 '16 11:03 shwethama

It uses the toString() method of your FtpDirectory implementation. If toString() is not implemented the the Default implementation is used from Object.toString() which usually return what you see.

Try to implement FtpDirectory.toString() method. Let me know if this helps?

drapostolos avatar Mar 09 '16 12:03 drapostolos

Btw, is your FtpDirectory implementation the same as in the example in the UserGuide? Then the FTPClient from apache is used for establishing the connection.

/Alex

drapostolos avatar Mar 09 '16 13:03 drapostolos