Initial Commit

This commit is contained in:
Clortox
2021-01-04 15:22:48 -05:00
commit 1e9762ff50
9 changed files with 339 additions and 0 deletions

15
helpers/files.php Normal file
View File

@@ -0,0 +1,15 @@
<?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;
}
?>