ftp_base::filesize() –

You appear to be a bot. Output may be restricted

Description

Usage

ftp_base::filesize( $pathname );

Parameters

$pathname
( mixed ) required

Returns

void

Source

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

1 to 9 of 9
  function filesize($pathname) {
    if(!isset($this->_features["SIZE"])) {
      $this->ftp_base::PushError("filesize", "not supported by server");
      return FALSE;
    }
    if(!$this->_exec("SIZE ".$pathname, "filesize")) return FALSE;
    if(!$this->ftp_base::_checkCode()) return FALSE;
    return preg_replace("/^[0-9]{3} ([0-9]+).*$/s", "\\1", $this->_message);
  }
 

 View on GitHub View on Trac