Group: Internet Functions (WinInet) - Library: wininet
How to remove FTP directory
Custom FTP Class for Visual FoxPro application
BOOL FtpRemoveDirectory(
HINTERNET hConnect,
LPCTSTR lpszDirectory
);
DECLARE INTEGER FtpRemoveDirectory IN wininet;
INTEGER hConnect,;
STRING lpszDirectory
hConnect [in] Valid HINTERNET handle to an FTP session.
lpszDirectory [in] Pointer to a null-terminated string that contains the name of the directory to remove on the remote system.
Returns TRUE if successful, or FALSE otherwise.
The possible reasons for the directory not being removed:
- your access level is not valid
- the directory does not exist
- the directory is not empty