Share this page

# ftp_rmdir_ex

FTP Functions (ftp)

Removes a directory on the FTP server for a specific session.

    int ftp_rmdir_ex( FTP *ppftp, const char *transaction, const char *path );

    int objFTP.rmdir_ex( ppftp as FTP, transaction as String, path as String ) as Integer     `for VB Script

ppftp | An FTP session identifier.
transaction | A transaction name for this step. To instruct VuGen not to create a transaction for this step, use a NULL string, "".
ITEM LIST | The path of the directory to remove, in the following format:`"PATH=full path"`

The ftp_rmdir_ex function removes a directory on the FTP server for the specified session.

This function is for use with multiple sessions. For global sessions, use the ftp_rmdir function, which leaves out the session identifier.

## Return Values

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

## Parameterization

All string input arguments can be passed using standard parameterization.

## Example

In the following example, the ftp_rmdir_ex function removes the for_jon directory from the FTP server.

Copy code

    // Remove the <i>for_jon</i> directory.
    ftp_rmdir_ex( &ftp, "Ftp_Rmv", "PATH=/pub/for_jon" );

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