WordPress at Your Fingertips
function is not described

ftp_base::restore() public WP 1.0

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

No Hooks.


null. Nothing.


$ftp_base = new ftp_base();
$ftp_base->restore( $from );
$from (required)

Code of ftp_base::restore() WP 5.8.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", "can't restore in ASCII mode");
		return FALSE;
	if(!$this->_exec("REST ".$from, "resore")) return FALSE;
	if(!$this->_checkCode()) return FALSE;
	return TRUE;