Table of Contents

Method Put

Namespace
Tamir.SharpSsh
Assembly
SLSSH.dll

Put(string)

Copies the specified file to the SFTP server.

public void Put(string fromFilePath)

Parameters

fromFilePath string

The file to copy to the SFTP server.

Exceptions

SftpException

Put(string[])

Copies the specified files to the SFTP server.

public void Put(string[] fromFilePaths)

Parameters

fromFilePaths string[]

The files to copy.

Exceptions

SftpException

Put(string[], string)

Copies the specified files to the specified directory on the SFTP server.

public void Put(string[] fromFilePaths, string toDirPath)

Parameters

fromFilePaths string[]

The files to copy.

toDirPath string

The directory to which the files should be copied.

Remarks

The directory must already exists.

Exceptions

SftpException

Put(string, string)

Copies the specified file to the specified directory on the SFTP server.

public override void Put(string fromFilePath, string toFilePath)

Parameters

fromFilePath string

The file to copy.

toFilePath string

The directory to which the file should be copied.

Exceptions

SftpException