Skip to content

Latest commit

 

History

History
57 lines (39 loc) · 1.2 KB

FtpRemoveDirectory.md

File metadata and controls

57 lines (39 loc) · 1.2 KB

Home

Function name : FtpRemoveDirectory

Group: Internet Functions (WinInet) - Library: wininet


Removes the specified directory on the FTP server.


Code examples:

How to remove FTP directory
Custom FTP Class for Visual FoxPro application

Declaration:

BOOL FtpRemoveDirectory(
    HINTERNET hConnect,
    LPCTSTR lpszDirectory
);
  

FoxPro declaration:

DECLARE INTEGER FtpRemoveDirectory IN wininet;
	INTEGER hConnect,;
	STRING  lpszDirectory  

Parameters:

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.


Return value:

Returns TRUE if successful, or FALSE otherwise.


Comments:

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