[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'LazFileCache' (#lazutils)

TFileStateCache.FileAgeCached

Ensures that the file age is up-to-date for a cache item.

Declaration

Source position: lazfilecache.pas line 83

public function TFileStateCache.FileAgeCached(

  const AFileName: string

):LongInt;

Arguments

AFileName

  

Name for the file examined in the method.

Function result

File age (last modification date) for the file.

Description

FileAgeCached differs from the related methods in the class instance. It returns a LongInt 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

FileAge


Version 4.0 Generated 2025-05-03 Home