TFileStateCache.FileIsExecutableCached function
Ensures that the "File is Executable" flag is up-to-date for a cache item.
Declaration
function FileIsExecutableCached(const AFilename: string): BooleanArguments
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
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
