Sign in Join
FPDoc Onlineexperiment

GetUnixPhysicalFilename function

In unit LazFileUtils

Resolves the symlink in Filename including omitted directories.

Declaration

pascal
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

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.