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

ReadAllLinks

Resolves a symbolic link to an actual file name

Declaration

Source position: lazfileutils.pas line 133

function ReadAllLinks(

  const Filename: string;

  ExceptionOnError: Boolean

):string;

Description

Resolves a symbolic link to an actual file name. It does not resolve symlinks in parent directories. If a symlink can not be resolved and if ExceptionOnError is False, the function returns an empty string (''). If ExceptionOnError is True, it raises an EFOpenError with a message, containing more details. On Windows it simply returns Filename.

The latest version of this document can be found at lazarus-ccr.sourceforge.net.