Skip to content

Latest commit

 

History

History
54 lines (36 loc) · 1.15 KB

FtpCreateDirectory.md

File metadata and controls

54 lines (36 loc) · 1.15 KB

Home

Function name : FtpCreateDirectory

Group: Internet Functions (WinInet) - Library: wininet


Creates a new directory on the FTP server


Code examples:

Creating a directory on the FTP
Custom FTP Class for Visual FoxPro application

Declaration:

BOOL FtpCreateDirectory(
    HINTERNET hConnect,
    LPCTSTR lpszDirectory
);
  

FoxPro declaration:

DECLARE INTEGER FtpCreateDirectory IN wininet;
	INTEGER hFtpSession,;
	STRING  lpszDirectory  

Parameters:

hConnect [in] Valid HINTERNET handle returned by a previous call to InternetConnect using INTERNET_SERVICE_FTP

lpszDirectory [in] Pointer to a null-terminated string that contains the name of the directory to create


Return value:

Returns TRUE if successful, or FALSE otherwise.


Comments:

To create a directory you must have sufficient access level to the ftp server.