Filesystemwatcher Filter. You can also fine tune filesystemwatcher to monitor any change in file attributes lastaccess lastwrite security and size data. Filesystemwatcher fsw new filesystemwatcher c watch.
Using filesystemwatcher watcher new filesystemwatcher watcher path args 1. Watch for changes in lastaccess and lastwrite times and the renaming of files or directories. Most of the filesystemwatcher s article on the net demonstrate only on filtering similar files like.
Gets the collection of all the filters used to determine what files are monitored in a directory.
Watch for changes in lastaccess and lastwrite times and the renaming of files or directories. The filter property can be changed after the filesystemwatcher object has started receiving events. For more information about filtering out unwanted notifications see the notifyfilter includesubdirectories and internalbuffersize properties. You can also fine tune filesystemwatcher to monitor any change in file attributes lastaccess lastwrite security and size data.