Method To
To(string, string)
Copies the specified file to the sever.
public void To(string localPath, string remotePath)
Parameters
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
stringThe file to copy to the server.
remotePath
stringThe name of the copied file.
_recursive
boolIndicates 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.