[Overview][Constants][Types][Classes][Procedures and functions][Index] Reference for unit 'FileUtil' (#lcl)

ReadAllLinks

ReadAllLinks - tries to find the file that is referred to by the symbolic link in FileName

Declaration

Source position: fileutil.pas line 64

function ReadAllLinks(

  const Filename: String;

  ExceptionOnError: Boolean

):String;

Arguments

Filename

  

The string containing the symbolic link

ExceptionOnError

  

If True, an Exception is raised on encountering a file error

Function result

Returns the full path and filename of the target file; empty if the file is not found, or the original FileName on Windows systems

Description

ReadAllLinks - tries to find the file that is referred to by the symbolic link in FileName

No function in Windows systems

On Unix-like systems, finds the linked file and returns its full path and filename, or (if has been set True) an Exception is raised with appropriate error message

Errors

If an error is encountered on trying to read the link, provided ExceptionOnError has been set True an Exception is raised with appropriate error message. Otherwise an error results in the return of an empty string.

This page is hosted on Get Lazarus Code and Component Repository at SourceForge.net. Fast, secure and Free Open Source software downloads