Sign in Join
FPDoc Onlineexperiment

TFileStateCache.DirPathExistsCached function

Member of TFileStateCachepublicIn unit LazFileCache

Ensures that a cached item has an up-to-date "directory path exists" flag value.

Declaration

pascal
function DirPathExistsCached(const AFilename: string): Boolean

Description

DirPathExistsCached ensures that a cached item with the name in AFileName has an up-to-date "directory path 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 DirPathExists routine is called to determine if the file exists on the local file system. SetFlag is called to update the fsciDirectory flag for the cache item with the given name.

See also

An experiment, built from Lazarus main 2dfa93c66e of 10-22-2026. Not the official Lazarus documentation.