ftp_mkdir

FTP Functions (ftp)

Creates a directory on the FTP server machine

int ftp_mkdir( char *transaction, char *path );

Function objFTP.mkdir( transaction as String, path as String ) as Integer    ` for VB Script

transactionA transaction name for this step. To instruct VuGen not to create a transaction for this step, use a NULL string, "".
PATH The PATH to create: "PATH=relative server path".
The path is relative to the root directory of the FTP server.

The ftp_mkdir function creates a directory on the FTP server.

This function is for use with global sessions. For multiple sessions, use the ftp_mkdir_ex function, which allows you to specify a session identifier.

Return Values

If this function succeeds, it returns LR_PASS. Otherwise, it returns LR_FAIL.

Parameterization

The following argument(s) can be parameterized with standard parameterization: List of Attributes

Example

In the following example, the ftp_mkdir function creates the directory pub/test.

    // Login to the FTP server 
    ftp_logon ("FTP", "URL=ftp://ftp.abc.com",LAST );
    ftp_mkdir ("Ftp_Mkdir", "PATH=pub/test");
    // Logout from the FTP server 
    ftp_logout();