ftp_base::restore()publicWP 1.0

Метод класса: ftp_base{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

$ftp_base = new ftp_base();
$ftp_base->restore( $from );
$from (обязательный)
-

Код ftp_base::restore() WP 6.5.2

function restore($from) {
	if(!isset($this->_features["REST"])) {
		$this->PushError("restore", "not supported by server");
		return FALSE;
	}
	if($this->_curtype!=FTP_BINARY) {
		$this->PushError("restore", "cannot restore in ASCII mode");
		return FALSE;
	}
	if(!$this->_exec("REST ".$from, "restore")) return FALSE;
	if(!$this->_checkCode()) return FALSE;
	return TRUE;
}