ZennoLab Assemblies Documentation
FtpDeleteDirectory Method
See Also  Example Send Feedback
ZennoLab.CommandCenter Assembly > ZennoLab.CommandCenter Namespace > ZennoPoster Class : FtpDeleteDirectory Method
host

Type: System.String

The address of the FTP server.
port

Type: System.Int32

The port of the FTP server.

protocol

Type: System.String

The FTP protocol. It can be "FTP", "sFTP", or "FTPs".

login

Type: System.String

The login of the FTP server.

pass

Type: System.String

The password of the FTP server.

proxy

Type: System.String

The proxy string in format: login:pass@ip:port OR ip:port.

name

Type: System.String

The directory name.

Glossary Item Box

Delete the directory.

Syntax

C# 
public static void FtpDeleteDirectory( 
   string host,
   int port,
   string protocol,
   string login,
   string pass,
   string proxy,
   string name
)

Parameters

host

Type: System.String

The address of the FTP server.
port

Type: System.Int32

The port of the FTP server.

protocol

Type: System.String

The FTP protocol. It can be "FTP", "sFTP", or "FTPs".

login

Type: System.String

The login of the FTP server.

pass

Type: System.String

The password of the FTP server.

proxy

Type: System.String

The proxy string in format: login:pass@ip:port OR ip:port.

name

Type: System.String

The directory name.

Remarks

This method delete the directory even if specified directory contains others directories or files.

Example

The following example shows call the FtpDeleteDirectory method.
C#Copy Code
ZennoPoster.FtpDeleteDirectory({host}, {port}, {protocol}, {login}, {password}, {proxy}, {directoryName});
PHPCopy Code
ZennoLab\CommandCenter\ZennoPoster::FtpDeleteDirectory({host}, {port}, {protocol}, {login}, {password}, {proxy}, {directoryName});

Requirements

Target Platforms: Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

Reference

ZennoPoster Class
ZennoPoster Members
FtpDeleteFile Method

© 2013 All Rights Reserved.