1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-05 19:42:38 +02:00
This commit is contained in:
Daniel Neto 2024-04-25 14:03:00 -03:00
parent 9fac56c21c
commit c14dfb9212
2 changed files with 4 additions and 1 deletions

View file

@ -127,6 +127,9 @@ function getDirSize($dir, $forceNew = false)
} else {
$command = "du -sb {$dir}";
exec($command . " < /dev/null 2>&1", $output, $return_val);
if(isCommandLineInterface()){
echo $command.PHP_EOL;
}
if ($return_val !== 0) {
_error_log("getDirSize: ERROR ON Command {$command}");
$return = 0;