Example: ftp_rendir

In the following example, the ftp_rendir function renames a directory on the FTP server.

    // Login to the FTP server 
    ftp_logon ("FTP", "URL=ftp://ftp.abc.com",LAST );
    // Rename the for_john directory to for_jim. 
    ftp_rendir ("Ftp_Rename", "SOURCE_DIR=/pub/for_john",
         "TARGET_DIR=/pub/for_jim", LAST );
    // Logout from the FTP server 
    ftp_logout();