drapostolos / rdp4j

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

While fetching files it fetches all the files even if they are already fetched #21

Open shalini1153 opened 5 years ago

shalini1153 commented 5 years ago

I have a sftp directory and i have applied polling so after every 30 sec it fetches and moves all the files present in sftp to local folder but what i want is If i have already fetched 100 files first then while fetching next time it should only fetch new files and not the previously added 100 files

drapostolos commented 5 years ago

I'm not sure I'm following what you mean? Can you provide some code examples? If you are fetching and then removing files from remote folder to local folder, are these files added back on the remote folder so they to be fetched again?

What do you mean with sftp directory? Is that your PolledDirectory implementation?