ftp_base::file_exists() –

You appear to be a bot. Output may be restricted

Description

Usage

ftp_base::file_exists( $pathname );

Parameters

$pathname
( mixed ) required

Returns

void

Source

File name: wordpress/wp-admin/includes/class-ftp.php
Lines:

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

 View on GitHub View on Trac