Discuss this help topic in SecureBlackbox Forum

SFTP: Create and manage symbolic and hard links

To create a symbolic link to a file use CreateSymLink() method of TElSimpleSFTPClient class. To create a hard link to a file use CreateHardLink() method of TElSimpleSFTPClient class.

Note that hard link creation functionality appeared in SFTP Version 6.

To find out that a directory entry is a link, inspect the attributes of the entry obtained during directory listing.

To get the information about the entry referenced by the symbolic link use ReadSymLink() method.

To delete the links use regular file deletion commands.

The above methods are synchronous and return when the operation is completed.

For information about error handling, see the corresponding how-to article.

How To articles about SFTP client

Discuss this help topic in SecureBlackbox Forum