ftp_base::file_exists()publicWP 1.0

Method of the class: ftp_base{}

No Hooks.

Return

null. Nothing (null).

Usage

$ftp_base = new ftp_base();
$ftp_base->file_exists( $pathname );
$pathname (required)
-

ftp_base::file_exists() code WP 6.5.2

function file_exists($pathname) {
	$exists=true;
	if(!$this->_exec("RNFR ".$pathname, "rename")) $exists=FALSE;
	else {
		if(!$this->_checkCode()) $exists=FALSE;
		$this->abort();
	}
	if($exists) $this->SendMSG("Remote file ".$pathname." exists");
	else $this->SendMSG("Remote file ".$pathname." does not exist");
	return $exists;
}