WordPress at Your Fingertips
function is not described

ftp_base::file_exists() 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->file_exists( $pathname );
$pathname (required)
-

Code of ftp_base::file_exists() WP 5.8.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;
}