Discuss this help topic in SecureBlackbox Forum


TElSimpleSFTPClient     See also     

Filter: C#/Java  VB.NET  Pascal  C++  PHP  

Creates a new hard-link.


    void CreateHardLink(string LinkPath, string TargetPath);

    Sub CreateHardLink(ByVal LinkPath As String, ByVal TargetPath As String)

    function CreateHardLink(const LinkPath: string; const TargetPath: string): Boolean;
    procedure CreateHardLinkSync(const LinkPath: string; const TargetPath: string);

    void CreateHardLink(const std::string &LinkPath, const std::string &TargetPath);

    void CreateHardLink(string $LinkPath, string $TargetPath)


  • LinkPath - specifies the name for a newly created hard link
  • TargetPath - specifies the target of hard link

Return value

    True if operation was completed successfully;
    False otherwise.


    Use this method to create hard links on a server side.
    In case of error, EElSFTPError exception containing SFTP error code, is raised. For more information on error handling, please read the corresponding how-to article.
    It is generally not possible to create hard links across devices.
    This feature is supported since version 6 of the SFTP protocol.

See also:     CreateSymLink    

Discuss this help topic in SecureBlackbox Forum