ftp_base::renamepublicWP 1.0

Method of the class: ftp_base{}

No Hooks.

Returns

null. Nothing (null).

Usage

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

ftp_base::rename() code WP 7.0

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;
}