WordPress at Your Fingertips
function is not described

ftp_base::rename() public WP 1.0

{} It's a method of the class: ftp_base{}

No Hooks.

Return

null. Nothing.

Usage

$ftp_base = new ftp_base();
$ftp_base->rename( $from, $to );
$from (required)
-
$to (required)
-

Code of ftp_base::rename() WP 5.8.2

function rename($from, $to) {
	if(!$this->_exec("RNFR ".$from, "rename")) return FALSE;
	if(!$this->_checkCode()) return FALSE;
	if($this->_code==350) {
		if(!$this->_exec("RNTO ".$to, "rename")) return FALSE;
		if(!$this->_checkCode()) return FALSE;
	} else return FALSE;
	return TRUE;
}