I seem to get two file watcher changed invocation for a file change. I
thought may be the cause is third party software effect the change
I checked the general attributes of the files, it clearly shows the original
created date and new modified date time.. I also tried notepad on the file
and click File-save. I still get two invocation of the file changed event
so what gives. does that mean I would have to save the last modified date
time and size of the file I am watching to guard against the being invoked
twice for the same change?
if so, what would be the best approach to minimize to application if I
were to watch for say 40000 files in 10 folders?. there will be simple
filters and check for subfolders and files being ignored from a list
I guess I can get the file watcher change event to just queue up the file
spec, along creation date time, modified date time and let a worker thread
to do the grunt work of whatever needed to deal with the file changes.
Furthermore the file watcher changed event will do a quick look up if the
change belongs to the same change from early call and ignore the change..
do I need to be concerned about looking up in the queue for same change
when there are about 50 to 100 items in the queue?.
any reference to thread safe list or queue sharing? I am new to thread
safety.. I will also have to look up thread safe GUI as well