ftp_base::file_exists

Advertisement

Syntax Syntax

ftp_base::file_exists( $pathname )

Source Source

File: wp-admin/includes/class-ftp.php

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

Advertisement

Advertisement

Leave a Reply