I am having a problem with directory watcher, environment is :
Current scenario :
My directory watcher is watching a shared folder (A) on network, and copies files from that folder to a different share folder (B) on network (Both shared folder are in different boxes)
Sometime my onAdd fires at odd times and it starts copying all the files available on A folder to B. And when I check logs, that time no files were added in A folder.
Problem is onAdd event fires any time and I dont know why its happening.
Some more info:
I am not moving files from A to B, just copying, so old files remains in same folder, there are around 3000-4000 files as of now in A folder, and every day 10-12 files gets copy in A.
Retrieving data ...