L_InetFtpDeleteDir

#include "ltweb.h"

L_INT EXT_FUNCTION L_InetFtpDeleteDir(hFtp, pszRemoteDir)

HFTP hFtp;

/* handle to an FTP connection */

L_TCHAR L_FAR *pszRemoteDir;

/* name of the directory to remove */

Removes the specified directory on the FTP server.

Parameter

Description

hFtp

Valid HFTP handle to an FTP connection.

pszRemoteDir

Character string that contains the name of the directory to remove on the FTP server. This can be either a fully qualified path or a name relative to the current directory. This is a NULL-terminated string.

Returns

SUCCESS

The function was successful.

< 1

An error occurred. Refer to Return Codes.

Comments

Deletes the specified directory from the FTP server.

If the directory specified in pszRemoteDir does not exist on the FTP server, this function will fail.

Required DLLs and Libraries

LTFIL
LTWEB

For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application

See Also

Functions:

L_InetFtpCreateDir, L_InetFtpChangeDir, L_InetFtpGetCurrentDir

Topics:

FTP Functions: Directory Manipulation Over an FTP Connection

 

How to Program with FTP Functions

Example

For an example, refer to L_InetFtpConnect Example