Table of Contents

Method From

Namespace
Tamir.SharpSsh
Assembly
SLSSH.dll

From(string, string)

Copies the specified file from the server to the specified folder.

public void From(string remoteFile, string localPath)

Parameters

remoteFile string

The file to copy.

localPath string

The name of the local copy.

Remarks

The file specified in remoteFile will not be automatically enclosed in double quotes if it does not contain a space. (RN 14337)

Exceptions

SshTransferException

localPath is not a directory.

From(string, string, bool)

Copies the specified file from the server to the specified folder.

public void From(string remoteFile, string localPath, bool _recursive)

Parameters

remoteFile string

The file to copy.

localPath string

The name of the local copy.

_recursive bool

Value indicating whether the copy should be recursive.

Remarks

The file specified in remoteFile will not be automatically enclosed in double quotes if it does not contain a space. (RN 14337)

Exceptions

SshTransferException

localPath is not a directory.