ibec_ftp_MakeDir
Description
ibec_ftp_MakeDir creates a directory on the FTP server.
Syntax
function ibec_ftp_MakeDir(FTPSession : variant; DirName : string) : boolean;
ibec_ftp_MakeDir creates a new directory on the FTP server. The DirName variable specifies the name of the new directory. The function returns TRUE in case of success. Otherwise it returns FALSE.
Example
FTPSession = ibec_ftp_OpenSession('HostName=myftpserver.com; UserName=me; Password=mysecret'); try if (ibec_ftp_Connect(FTPSession)) then begin if (ibec_ftp_ChangeDir(FTPSession, '\uploads')) then ibec_ftp_MakeDir(FTPSession, 'DataFiles'); ... end; finally ibec_ftp_CloseSession(FTPSession); end;
See also:
ibec_ftp_ChangeDir
ibec_ftp_RemoveDir
ibec_ftp examples
back to top of page
<< ibec_ftp_ChangeDir | IBEBlock | ibec_ftp_RemoveDir >>