Directory watcher false event throw
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.
I would add some logging to the onAdd method to determine what file is being added:
<cflog file="MydirWatcher" application="No"
text="ACTION: #data.type#;FILE: #data.filename#;
It's also possible that there are issues with this under CF 8 that have been fixed in CF 9. CF 8 is four years old.