Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>You could use the FileSystemInfo's LastAccessProperty. The problem though is that it can be cached.</p> <p>FileSystemInfo: <a href="http://msdn.microsoft.com/en-us/library/975xhcs9.aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/975xhcs9.aspx</a></p> <p>LastAccessTime Property: <a href="http://msdn.microsoft.com/en-us/library/system.io.filesysteminfo.lastaccesstimeutc.aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/system.io.filesysteminfo.lastaccesstimeutc.aspx</a></p> <p>As noted that this can be pre-cached. </p> <p>"The value of the LastAccessTimeUtc property is pre-cached if the current instance of the FileSystemInfo object was returned from any of the following DirectoryInfo methods:</p> <p>GetDirectories</p> <p>GetFiles</p> <p>GetFileSystemInfos</p> <p>EnumerateDirectories</p> <p>EnumerateFiles</p> <p>EnumerateFileSystemInfos</p> <p>To get the latest value, call the Refresh method."</p> <p>Therefore call the Refresh method but it still might not be up to date due to Windows caching the value. (This is according to msdn doc "FileSystemInfo.Refresh takes a snapshot of the file from the current file system. Refresh cannot correct the underlying file system even if the file system returns incorrect or outdated information. This can happen on platforms such as Windows 98." - link: <a href="http://msdn.microsoft.com/en-us/library/system.io.filesysteminfo.refresh.aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/system.io.filesysteminfo.refresh.aspx</a></p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload