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 - localPathwas 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
- localPathstring
- The file to copy to the server. 
- remotePathstring
- The name of the copied file. 
- _recursivebool
- 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 - localPathwas not found.
- SshTransferException
- When copying directories, the recursive option must be set to true.