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

TFileStateCache.FileIsExecutableCached

Ensures that the "File is Executable" flag is up-to-date for a cache item.

Declaration

Source position: lazfilecache.pas line 79

public function TFileStateCache.FileIsExecutableCached(

  const AFilename: string

):Boolean;

Arguments

AFilename

  

Name for the file examined in the method.

Function result

True if the specified file is an executable binary.

Description

FileIsExecutableCached ensures that the cache item for the specified file has an up-to-date value in its "File is Executable" flag. It calls Check to get the cache item with the given name, and to examine its flag values. If Check returns True for the flag, no additional actions are performed in the method.

Otherwise, the FileIsExecutable routine is called to get the return value. SetFlag is called to apply the fsciExecutable flag value to the cached item.

See also

TFileStateCache.Check

  

Checks the specified cache item to get a specific flag value.

TFileStateCacheItem.Filename

  

Name for the file or directory in the cache item.

TFileStateCacheItem.PhysicalFilename

  

Physical name for the file or directory in the cache item.

TFileStateCacheItem.Flags

  

Contains status flags for the cached file or directory item.

FileIsExecutable

  

Determines if the specified file name is executable.


Version 4.0 Generated 2025-05-03 Home