Notes on events

The following are some notes on gotcha points with filesystem events that you should be aware of:

  • Common filesystem operations may raise more than one event. For example, when a file is moved from one directory to another, several OnChanged and some OnCreated and OnDeleted events might be raised. Moving a file is a complex operation that consists of multiple simple operations, therefore raising multiple events. Likewise, some applications (for example, antivirus software) might cause additional filesystem events that are detected by the watcher.
  • The watcher can watch disks if they are not switched or removed. The watcher does not raise events for CDs and DVDs because time stamps and properties cannot change. Remote computers ...

Get Hands-On Microservices with C# now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.