开发者

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!

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜