FileSystemWatcher locks folder
问题 I have a FileSystemWatcher listening on a folder. When I try renaming this folder (in Windows Explorer) I get a The action can't be completed because the folder or a file in it is open in another program error. Commenting out the FileSystemWatcher calls fixes this. I've tried reproducing the error with a simple program, but haven't been successful so I'm not sure what's going on here. Has anyone encountered anything like this with a FileSystemWatcher ? If so - what might be causing it? More