tag:blogger.com,1999:blog-9977539741480046.post4620107026676487376..comments2024-02-09T23:27:37.645+11:00Comments on Zach Saw's Blog: DotNUTs Framework - DirectoryInfo.GetFiles and DirectoryInfo.GetDirectories Callback / EventZach Sawhttp://www.blogger.com/profile/02019604928253273845noreply@blogger.comBlogger1125tag:blogger.com,1999:blog-9977539741480046.post-88168776708128262472008-07-29T16:27:00.000+10:002008-07-29T16:27:00.000+10:00Apparently, this discrepancy comes about because t...Apparently, this discrepancy comes about because the dotNUTs framework uses GetFileAttributesEx rather than FindFirstFile to determine its LastAccessTime.<BR/><BR/>In any case, GetFileAttributesEx is buggy (<A HREF="http://msdn.microsoft.com/en-us/library/aa365739(VS.85).aspx" REL="nofollow">GetFileAttributesEx's WIN32_FILE_ATTRIBUTE_DATA from MSDN</A>):<BR/><BR/><B>ftLastAccessTime</B><BR/><BR/>A FILETIME structure.<BR/><BR/>For a file, the structure specifies when the file is last read from or written to.<BR/><BR/>For a directory, the structure specifies when the directory is created.<BR/><BR/>The same description can be found for FindFirstFile's WIN32_FIND_DATA structure.<BR/><BR/>So, how come this yields different results?<BR/><BR/>Note: Tested on WinXP SP2.Zach Sawhttps://www.blogger.com/profile/02019604928253273845noreply@blogger.com