Table of Contents

Method CreateHardLinkAsync

Namespace
SshSharp.Sftp
Assembly
SshSharp.dll

CreateHardLinkAsync(string, string, CancellationToken)

Creates the hard link linkPath to the file existingPath (hardlink@openssh.com).

public Task CreateHardLinkAsync(string linkPath, string existingPath, CancellationToken cancellationToken = default)

Parameters

linkPath string
existingPath string
cancellationToken CancellationToken

Returns

Task

Exceptions

NotSupportedException

The server lacks hardlink@openssh.com.