ftp_base::filesize()publicWP 1.0

Метод класса: ftp_base{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

$ftp_base = new ftp_base();
$ftp_base->filesize( $pathname );
$pathname (обязательный)
-

Код ftp_base::filesize() WP 6.5.2

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