mirror of
https://github.com/Clortox/SimpleFileRepository.git
synced 2026-03-05 09:37:58 +00:00
Initial Commit
This commit is contained in:
15
helpers/files.php
Normal file
15
helpers/files.php
Normal 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;
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user