public function getSize($format = '0.00')
{
if (!isset($this->_size)) {
if ($this->getIsFile()) {
$this->_size = $this->getExists() ? sprintf('%u', filesize($this->_realpath)) : null;
} else {
$this->_size = $this->getExists() ? sprintf('%u', $this->dirSize()) : null;
}
}
$size = $this->_size;
if ($format !== False) {
$size = $this->formatFileSize($this->_size, $format);
}
return $size;
}