mirror of
https://github.com/Clortox/SimpleFileRepository.git
synced 2025-01-09 10:28:00 +00:00
16 lines
397 B
PHP
16 lines
397 B
PHP
<?php
|
|
ini_set('display_errors',1);
|
|
ini_set('display_startup_errors',1);
|
|
error_reporting(E_ALL);
|
|
|
|
function foldersize($path){
|
|
$sizestr = shell_exec('du -sh "' . $path . '/" | awk \'{print $1} \'');
|
|
return $sizestr;
|
|
}
|
|
|
|
function listingsize($path){
|
|
$sizestr = shell_exec('du -h "' . $path . '" | awk \'{print $1}\'');
|
|
return $sizestr;
|
|
}
|
|
?>
|