Method To
To(string, string)
Copies the specified file to the sever.
public void To(string localPath, string remotePath)
Parameters
Remarks
The remote path specified in remotePath will not be automatically enclosed in double quotes if it does not contain a space. (RN 14337)
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
localPathstringThe file to copy to the server.
remotePathstringThe name of the copied file.
_recursiveboolIndicates whether items of the specified directory must be copied recursively.
Remarks
The remote path specified in remotePath will not be automatically enclosed in double quotes if it does not contain a space. (RN 14337)
Exceptions
- SshTransferException
The file specified in
localPathwas not found.- SshTransferException
When copying directories, the recursive option must be set to true.