[Overview][Constants][Types][Procedures and functions][Variables][Index] |
Indicates if the specified file is a symbolic link in the file system.
Source position: lazfileutils.pas line 52
function FileIsSymlink( |
const AFilename: string |
):Boolean; |
AFilename |
|
File name examined in the routine` |
True when the specified file name is a symbolic link.
FileIsSymlink is a Boolean function used to determine if the specified file name is a symbolic link on the local file system.
The implementation of FileIsSymlink is platform-specific. For UNIX-like environments, the FpReadLink function is used to determine if the symbolic link can be resolved to a physical file name in the local file system. For the Windows platform, FileGetAttrUTF8 is called to get and examine the file attributes for the specified file name. The file attributes must include the value FILE_ATTRIBUTE_REPARSE_POINT, and one of the Windows API values such as IO_REPARSE_TAG_SYMLINK or IO_REPARSE_TAG_MOUNT_POINT for the corresponding file handle. For the Amiga platform, FileIsSymLink always returns False.
|
Gets the value of file attributes for the specified file name. |
|
Version 3.2 | Generated 2024-02-25 | Home |