public function rename($currentName, $newName)
    {
        $result = @ftp_rename($this->connection, $currentName, $newName);

        return $result;
    }
public function rename($currentName, $newName)
    {
        $result = @ftp_rename($this->connection, $currentName, $newName);

        return $result;
    }
public function rename ( $ currentName , $ newName ) { $ result = @ ftp_rename ( $ this -> connection , $ currentName , $ newName ) ; return $ result ; }
Renames a file or a directory on the FTP server

@param string $currentName
@param string $newName

@return bool
Renames a file or a directory on the FTP server