FileSystemSafeWatcher
FileSystemSafeWatcher copied to clipboard
The class crashes if a file is added to a subfolder
Hi, When I add a file to a subfolder of the monitored folder with Filter = . and IncludeSubdirectories = false, the class crashes and causes an infinite loop.
watcher = new FileSystemWatcher("C:\TEST");
watcher.Filter = "*.*";
watcher.IncludeSubdirectories = false;
watcher.EnableRaisingEvents = true;
If Filter is on a specific extension like Filter = "*.csv", it's ok, but not with the combinaison of Filter= "*.*" and IncludeSubdirectories = false