Uploads file to SSH server.
Namespace: Jscape.ScpAssembly: Jscape.Ssh (in Jscape.Ssh.dll) Version: 2.7.2.0
Syntax
C# |
---|
public void Upload(
FileInfo file,
string remoteDir,
string remoteFile
) |
Visual Basic |
---|
Public Sub Upload ( _
file As FileInfo, _
remoteDir As String, _
remoteFile As String _
) |
Visual C++ |
---|
public:
void Upload(
FileInfo^ file,
String^ remoteDir,
String^ remoteFile
) |
Parameters
- file
- Type: System.IO..::..FileInfo
file to upload
- remoteDir
- Type: System..::..String
remote directory path with ending path separator (i.e "/user/home/")
or empty line for current directory
- remoteFile
- Type: System..::..String
he remote file name
See Also