ZennoLab Assemblies Documentation
FtpCreateDirectory Method (ZennoPoster)
Example 

Type: System.String

The address of the FTP server.

Type: System.Int32

The port of the FTP server.

Type: System.String

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

Type: System.String

The login of the FTP server.

Type: System.String

The password of the FTP server.

Type: System.String

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

Type: System.String

The directory name.

Create a directory with the specified name.
Syntax
public static void FtpCreateDirectory( 
   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
The parameter "name" can be directory name (for example: Folder) or directory path (for example: Folder\SubFolder). There are two ways specify the directory path. See example.
Example
The following example shows call the FtpCreateDirectory method.
// create a new directory with name "newDirectory" on "host_name"
ZennoPoster.FtpCreateDirectory("host_name", {port}, "protocol", "login", "password", "proxy", "newDirectory");
// create a new directory with name "NewDirectory\newDirectory" on "host_name"
ZennoPoster.FtpCreateDirectory("host_name", {port}, "protocol", "login", "password", "proxy", "NewDirectory\\newDirectory");
// or this way
ZennoPoster.FtpCreateDirectory("host_name", {port}, "protocol", "login", "password", "proxy", "NewDirectory/newDirectory");
// create a new directory with name "newDirectory" on "host_name"
ZennoLab\CommandCenter\ZennoPoster::FtpCreateDirectory("host_name", {port}, "protocol", "login", "password", "proxy", "newDirectory");
// create a new directory with name "NewDirectory\newDirectory" on "host_name"
ZennoLab\CommandCenter\ZennoPoster::FtpCreateDirectory("host_name", {port}, "protocol", "login", "password", "proxy", "NewDirectory\\newDirectory");
// or this way
ZennoLab\CommandCenter\ZennoPoster::FtpCreateDirectory("host_name", {port}, "protocol", "login", "password", "proxy", "NewDirectory/newDirectory");
Requirements

Target Platforms: Desktop: Windows XP SP3 and older. Server: Windows Server 2003 and older.

See Also

Reference

ZennoPoster Class
ZennoPoster Members
FtpChmode Method
FtpDeleteDirectory Method
FtpDeleteFile Method
FtpDownload Method
FtpGetList Method
FtpUploadDirectory Method
FtpUploadFile Method

Send Feedback