diff options
author | albertony <12441419+albertony@users.noreply.github.com> | 2022-04-02 21:28:09 +0300 |
---|---|---|
committer | albertony <12441419+albertony@users.noreply.github.com> | 2022-04-02 21:56:20 +0300 |
commit | 15ccf8130a16a93d06e29521d3c90fbc6b11771a (patch) | |
tree | 594c858501ea9fe175bf63faf7e2e77c5c142088 /README.md | |
parent | 2f3b0e83a0c3e5dbdd8ccba0a08e3623d64ca231 (diff) |
Ignore exception when file access time is not valid
When getting the value from FileSystemInfo.LastAccessTime, it will internally convert
the FILETIME value from Windows API to a DateTime. If the value represents a date after
12/31/9999 it will throw ArgumentOutOfRangeException, because this is not supported by
DateTime. Some file systems seem to set strange access timestamps on files, which
may lead to this exception being thrown. Since the last accessed timestamp is not
important such exceptions are now just silently ignored.
Diffstat (limited to 'README.md')
0 files changed, 0 insertions, 0 deletions