drapostolos / rdp4j

Remote Directory Poller for Java
MIT License
46 stars 25 forks source link

Not connecting to the FTP server #12

Open shwethama opened 8 years ago

shwethama commented 8 years ago

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()

drapostolos commented 8 years ago

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 commented 8 years ago

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