Is there an efficient way to monitor all the files in a directory and determine when they are modified? I'm trying to avoid polling the directory every couple of seconds and running:
File.GetLastAccessTime(string pat开发者_StackOverflowh);
That's what the FileSystemWatcher class is all about.
http://msdn.microsoft.com/en-us/library/system.io.filesystemwatcher.aspx
Good luck
Are you looking for something like FileSystemWatcher?
Maybe File System Watcher suits your needs.
Use the FileSystemWatcher - works great!
 
         
                                         
                                         
                                         
                                        ![Interactive visualization of a graph in python [closed]](https://www.devze.com/res/2023/04-10/09/92d32fe8c0d22fb96bd6f6e8b7d1f457.gif) 
                                         
                                         
                                         
                                         加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论