ftp_base::file_exists()
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() ftp base::file exists code WP 6.8
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; }