TFileStateCache.FileExistsCached function
Ensures that a cached item has an up-to-date "file exists" flag value.
Declaration
function FileExistsCached(const AFilename: string): BooleanArguments
AFilename | Name for the file to examine in the method. |
Function result
True if the file exists on the local file system and in the cache.Description
FileExistsCached ensures that a cached item with the name in
AFileName has an up-to-date "file exists" flag value in the cache.
Calls Check to use the valid flag value for an existing
TFileStateCacheItem instance in the cache. If the return value from
Check is True, no additional actions are performed in the method.
Otherwise, the flag value was not present for the specified cache item. The
FileExistsUTF8 routine is called to determine if the file exists on
the local file system. SetFlag is called to update the
fsciExists flag for the cache item with the given name.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
