FileIsHardLink function
Indicates if the specified file has a descriptor or handle on the local file system.
Declaration
function FileIsHardLink(const AFilename: string): BooleanDescription
FileIsHardLink is a
Boolean function used to determine
if the specified file name is represented by a file descriptor or handle on
the local file system.
The implementation of FileIsHardLink is platform- or OS-specific. For
UNIX-like environments, a file handle is retrieved by calling the
FileOpenUTF8 function and passed to the FpFStat
function to access the file information. For the Windows platform (excluding
WinCE and Windows XP), the GetFileInformationByHandle Windows API
routine is called to get information for the file handle. For the Amiga
platform, FileIsHardLink always returns False.
The return value is False if a file handle could not be accessed for the specified file name or it is actually a symbolic link on the local file system.
See also
An experiment, built from Lazarus main 2dfa93c66e of 10-22-2026. Not the official Lazarus documentation.
