Deletes directory from SFTP server.
Namespace: Jscape.SftpAssembly: 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
Exception | Condition |
---|---|
Jscape.Sftp..::..SftpException | if an error occurs |