|
|
|
|
|
by AshamedCaptain
592 days ago
|
|
The documentation for OF_EXISTS literally says it will open then close it. I leave to your imagination whether this updates the (very poorly defined) access time or not, but for sure you "interfere" with other processes... If you want to get the access time, why don't you just query the access time? Which is likely the only thing almost universally guaranteed not to change it...
And I'm sure VB6 has an API for that, considering that VBA had a global API for it (FileDateTime). (Which is, btw, yet another way to one-line check if a file exists). |
|
The way you probably did in your now-deleted comment claiming that stat() updated atime?
Citation needed. https://learn.microsoft.com/en-us/dotnet/api/system.io.file.... doesn't warn of any such thing.