FileSystemWatcher - Changed Event - NotifyFilter.LastWrite - too m

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

The problem is too many events for a single file the copy.

It appears that when I copy a file to a folder, I am getting 3 events for
the one file.

FSW is set to respond to Changed event and NotifyFilter.LastWrite,.

Is there a way to reduce those events to one?

Future enhancements of my code will delete this same file when processing is
done. Will this lead to even more Changed events with NotifyFilter.LastWrite?

I am having problems understanding the documentation on this point and it is
simply because I do not understand what happens when a file is copied, and
deleted.

Thank you for pointing me in the right direction!
 
Back
Top