L_InetFtpCreateDir
#include "ltweb.h"
L_LTWEB_API L_INT L_InetFtpCreateDir(hFtp, pszRemoteDir)
HFTP hFtp; |
/* handle to an FTP connection */ |
L_TCHAR *pszRemoteDir; |
/* name of the directory to create */ |
Creates a new 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 create 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
A new directory will be created on the FTP server.
If the directory specified in pszRemoteDir already exists on the FTP server, this function will fail.
Required DLLs and Libraries
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_InetFtpChangeDir, L_InetFtpDeleteDir, L_InetFtpGetCurrentDir |
Topics: |
FTP Functions: Directory Manipulation Over an FTP Connection |
|
Example
For an example, refer to L_InetFtpConnect example.