ftp_base::file_exists
Метод класса: ftp_base{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$ftp_base = new ftp_base(); $ftp_base->file_exists( $pathname );
- $pathname(обязательный)
- .
Код ftp_base::file_exists() ftp base::file exists WP 6.9.1
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;
}