Deletes directory from SFTP server.

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

Syntax

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

Parameters

pathname
Type: System..::..String
the directory to delete
recursive
Type: System..::..Boolean
recursive deletion flag

Exceptions

ExceptionCondition
Jscape.Sftp..::..SftpExceptionif an error occurs

See Also