Uploads file to SSH server.

Namespace: Jscape.Scp
Assembly: Jscape.Ssh (in Jscape.Ssh.dll) Version: 2.7.2.0

Syntax

C#
public void Upload(
	FileInfo file,
	string remoteDir
)
Visual Basic
Public Sub Upload ( _
	file As FileInfo, _
	remoteDir As String _
)
Visual C++
public:
void Upload(
	FileInfo^ file, 
	String^ remoteDir
)

Parameters

file
Type: System.IO..::..FileInfo
file to upload
remoteDir
Type: System..::..String
emote directory path with ending path separator (i.e "/user/home/") or empty line for current directory

See Also