TFileStateCache.FileAgeCached function
Ensures that the file age is up-to-date for a cache item.
Declaration
function FileAgeCached(const AFileName: string): Int64Description
FileAgeCached differs from the related methods in the class
instance. It returns an
Int64 value instead of a
Boolean, and contains the value from the
FileAge routine
in the RTL
SysUtils unit. The value represents the last date that
the file was modified, and the integer value does not include any time-related
information for the modification timestamp.
FileAgeCached cannot be used for directory names; the value is always -1 when used for a directory name.
FileAge is not related to the TimeStamp property for the cache.
See also
An experiment, built from Lazarus main 2dfa93c66e of 10-22-2026. Not the official Lazarus documentation.
