Table of Contents

Method To

Namespace
Tamir.SharpSsh
Assembly
SLSSH.dll

To(string, string)

Copies the specified file to the sever.

public void To(string localPath, string remotePath)

Parameters

localPath string

The file to copy to the server.

remotePath string

The name of the copied file.

Remarks

From DataMiner 9.0.4 (RN 14337) onwards, the remote path specified in remotePath is no longer automatically enclosed in double quotes if it does not contain a space.

Exceptions

SshTransferException

The file specified in localPath was not found.

SshTransferException

When copying directories, the recursive option must be set to true.

To(string, string, bool)

Copies the specified file to the sever.

public void To(string localPath, string remotePath, bool _recursive)

Parameters

localPath string

The file to copy to the server.

remotePath string

The name of the copied file.

_recursive bool

Indicates whether items of the specified directory must be copied recursively.

Remarks

From DataMiner 9.0.4 (RN 14337) onwards, the remote path specified in remotePath is no longer automatically enclosed in double quotes if it does not contain a space.

Exceptions

SshTransferException

The file specified in localPath was not found.

SshTransferException

When copying directories, the recursive option must be set to true.