Uplolads local folder to a remote FTP location

Namespace:  KetLabs.FTP
Assembly:  Ftp (in Ftp.dll) Version: 1.0.0.19105 (1.0.0.*)

Syntax

C#
public void UploadDirectory(
	string sourceDir,
	string destinationDir,
	bool recursive
)
Visual Basic (Declaration)
Public Sub UploadDirectory ( _
	sourceDir As String, _
	destinationDir As String, _
	recursive As Boolean _
)
Visual C++
public:
void UploadDirectory(
	String^ sourceDir, 
	String^ destinationDir, 
	bool recursive
)

Parameters

sourceDir
Type: System..::.String
Local folder path
destinationDir
Type: System..::.String
Remote destination path
recursive
Type: System..::.Boolean
If true all the subdirectories are uploaded too. If false only the files in the sourceDir are uploaded.

See Also