====== rename ====== {#JAPI Joomla.Framework Client JFTP::rename #} This method renames a file or folder on the FTP server. ===== Syntax ===== boolean rename ( **$from**, **$to** ) | **$from** | string | is a string containing the path to change file/folder from. | | **$to** | string | is a string containing the path to change file/folder to. | ===== Examples ===== jimport( 'joomla.connector.ftp' ); $ftp = new JFTP( array( 'type' => FTP_BINARY ) ); $ftp->connect( '127.0.0.1' ); $ftp->login( 'testuser', 'testpass' ); if ($ftp->rename( 'test', 'renametest' ) ) { echo "Rename successful!"; } else { echo "Rename failed!"; } might produce: Rename successful!