Unit 'sysutils' Package
[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] [#rtl]

FileGetSymLinkTarget

Get the target filename and size of a symlink.

Declaration

Source position: filutilh.inc line 243

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

TUnicodeSymLinkRec

  

Symlink information for OSes with double-byte (widechar) filesystem API.

TRawbyteSymLinkRec

  

Symlink information for OSes with single-byte filesystem API.


Documentation generated on: Oct 27 2024