FileGetSymLinkTarget¶
Get the target filename and size of a symlink.
Declaration¶
Source position: filutilh.inc line 245
function FileGetSymLinkTarget(const FileName: UnicodeString;
out SymLinkRec: TUnicodeSymLinkRec)
: Boolean;
function FileGetSymLinkTarget(const FileName: UnicodeString;
out TargetName: UnicodeString) : Boolean;
function FileGetSymLinkTarget(const FileName: RawByteString;
out SymLinkRec: TRawbyteSymLinkRec)
: Boolean;
function FileGetSymLinkTarget(const FileName: RawByteString;
out TargetName: RawByteString) : Boolean;
Description¶
FileGetSymLinkTarget returns the target filename, size and attributes of a symbolic link in SymLinkRec. On unix-like systems, the filemode is also returned. The filename can be a relative filename, it will not be expanded.
See also¶
| Name | Description |
|---|---|
| TUnicodeSymLinkRec | Symlink information for OSes with double-byte (widechar) filesystem API. |
| TRawbyteSymLinkRec | Symlink information for OSes with single-byte filesystem API. |