drapostolos / rdp4j

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

Files appear as added after some hours #18

Open Lisiii opened 6 years ago

Lisiii commented 6 years ago

Hi!

I have the following problem: When I run the FTP Directory Watcher I don't have any problems, but after some hours all the existing files appear as added and from that time on every now and then (couple of minutes or hours) they appear as added again. I think that it occurs when the internet connection gets lost, but how do I prevent the files from appearing as added again? When I first initialize the directory iterator the extisting files don't appear as added.

drapostolos commented 6 years ago

Hard to say what is going on, without seeing the implementation.

Could it be that the PolledDirectory.listFiles() implementation returns an empty list when there is a network problem? Instead of throwing IOException