Example: ftp_rendir_ex
In the following example, the ftp_rendir_ex function renames a directory on the FTP server.
{ unsigned long *ftp_session=NULL;
// Log on to server "mansfield". The user is "fanny" defined on the server. The password is "price"
ftp_logon_ex(&ftp_session,"FtpLogon", "URL=ftp://mansfield\\fanny:price@mansfield",LAST );
// Make a directory "Text/X"
ftp_mkdir_ex(&ftp_session,"FtpMakeDir", "PATH=Test/X"); // Rename the directory "Text/Y" ftp_rendir_ex(&ftp_session,"FtpRenDir", "SOURCE_DIR=Test/X" , "TARGET_DIR=Test/Y", ENDITEM, LAST );
ftp_logout_ex(&ftp_session);
return 0;
}