Add used_space
This commit is contained in:
@@ -159,7 +159,8 @@ foreach ($clients as $c) {
|
||||
}
|
||||
|
||||
header('Content-Type: application/json; charset=UTF-8');
|
||||
echo "{\"data\": [\n";
|
||||
$size = intval(exec("du -s .data/$c")) * 1024;
|
||||
echo "{\"used_space\": $size, \"data\": [\n";
|
||||
$first = true;
|
||||
foreach (scandir(".data/$c/") as $file) {
|
||||
if (str_starts_with($file, ".") || str_ends_with($file, ".php") || str_ends_with($file, ".inc")) continue;
|
||||
|
Reference in New Issue
Block a user