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