-
-
Notifications
You must be signed in to change notification settings - Fork 4
SSH.SFTPSession.ReadSymbolicLink
Andrew Lambert edited this page Nov 26, 2022
·
7 revisions
SSH.SFTPSession.ReadSymbolicLink
Function ReadSymbolicLink(LinkPath As String, FollowAll As Boolean = False) As String
Name | Type | Comment |
---|---|---|
LinkPath |
String | The path of the link to follow. |
FollowAll |
Boolean | Optional. If True then symlinks to symlinks are dereferenced. |
Returns the path contained within the symlink, or the empty string.
Reads the symbolic link specified by LinkPath
and returns the path of the linked file/directory. If the linked file/directory is itself a symlink and FollowAll=True
then that and all subsequent symlinks are followed until we reach the final target.
If the LinkPath
is not actually a symlink then this method returns the empty string.
Wiki home | Project page | Bugs | Become a sponsor
Text and code examples are Copyright ©2018-24 Andrew Lambert, offered under the CC BY-SA 3.0 License.