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

GetPhysicalFilenameCached

Gets the physical file name for the specified file or directory name.

Declaration

Source position: lazfilecache.pas line 107

function GetPhysicalFilenameCached(

  const AFilename: string;

  EmptyOnError: Boolean

):string;

Arguments

AFilename

  

File name resolved in the routine.

EmptyOnError

  

True to return an empty string if AFilename is not found.

Function result

Actual file name for the symbolic link or reference.

Description

GetPhysicalFilenameCached is a String function used to get the physical file name for the value specified in AFileName. The return value contains the actual file name for a symbolic link or reference on the local file system.

EmptyOnError indicates that the return value can be an empty string ('') if AFilename cannot be resolved. When set to False, the original file in AFileName is used as the return value.

GetPhysicalFilenameCached provides two (2) ways to resolve the value in AFilename:

See also

TFileStateCache.GetPhysicalFilenameCached

  

Resolves the specified file name to a physical file on the local file system.

GetPhysicalFilename

FileStateCache

  

Unit global variable with the class instance for the state caching mechanism.


Version 4.0 Generated 2025-05-03 Home