Unit 'LazFileUtils' Package
[Overview][Constants][Types][Procedures and functions][Variables][Index] [#lazutils]

GetUnixPhysicalFilename

Resolves the symlink in Filename including omitted directories.

Declaration

Source position: lazfileutils.pas line 151

function GetUnixPhysicalFilename(

  const Filename: string;

  ExceptionOnError: Boolean

):string;

Arguments

Filename

  

File name (or symlink) examined in the function.

ExceptionOnError

  

Indicates if an exception is raised for a symbolic link that cannot be resolved to a physical file name.

Function result

Physical file name for the resolved symbolic link.

Description

If a symlink can not be resolved, and ExceptionOnError is False, the function returns an empty string (''). If ExceptionOnError is True, it raises an EFOpenError exception with a message containing more details.

GetUnixPhysicalFilename is used to implement the GetPhysicalFilename function for UNIX-like environments.

See also

GetPhysicalFilename

  

Gets the physical file name for a symbolic link on the local file system.


Version 4.4 Generated 2025-11-08 Home