public void FileWatcher(string MonitorPath)
{
FileSystemWatcher watcher = new FileSystemWatcher(MonitorPath,"*.*");
//设置监视文件的哪些修改行为
watcher.NotifyFilter = NotifyFilters
C#检测文件夹是否被修改
最新推荐文章于 2023-01-13 13:14:50 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)