Deletes remote directory

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

Syntax

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

Parameters

dirName
Type: System..::.String
Remote directory name to be deleted
recursive
Type: System..::.Boolean
if true the directory is deleted with its sub folders and files , if false and the directory is not empty a WebException is thrown

Exceptions

ExceptionCondition
[!:System.Net.WebExeption]If the directory is not empty and recursive is false

See Also