Discuss this help topic in SecureBlackbox Forum

TElSftpClient.CreateHardLink

TElSftpClient     See also     


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


Creates a new hard-link.

Declaration

[C#]
    bool CreateHardLink(string LinkPath, string TargetPath);

[VB.NET]
    Function CreateHardLink(ByVal LinkPath As String, ByVal TargetPath As String) As Boolean

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

[C++]
    bool CreateHardLink(const std::string &LinkPath, const std::string &TargetPath);

[PHP]
    bool CreateHardLink(string $LinkPath, string $TargetPath)

[Java]
    boolean createHardLink(String LinkPath, String TargetPath);

Parameters

  • 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.

Description

    Use this method to create hard links on a server side. If the hard link was successfully created, the OnSuccess event is fired. The OnError event is fired otherwise.
    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