C# File Modified Dates
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!
精彩评论