FileSystemSafeWatcher icon indicating copy to clipboard operation
FileSystemSafeWatcher copied to clipboard

The class crashes if a file is added to a subfolder

Open ericcanadas opened this issue 9 months ago • 2 comments

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

ericcanadas avatar May 02 '24 13:05 ericcanadas