Share this page

# 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

transaction | A 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();

Tips to improve your search results... VuGen Function Reference Version 26.1 Function Reference 26.1 All View Local Help Center View Online Help Center Version: