/** * Get file size in human readable format */ public function getByteSite() { return Numeric::toBytes($this->getSize()); }
/** * Get PHP allocated memory usage */ public static function getMemUsage() { return Numeric::toBytes(memory_get_peak_usage()); }
/** * Get folder size in human readable format */ public function getByteSite($recursive = false) { $bytes = $recursive ? $this->getRecursiveSize() : $this->getSize(); return Numeric::toBytes($bytes); }