mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-06 03:50:04 +02:00
Update
This commit is contained in:
parent
9fac56c21c
commit
c14dfb9212
2 changed files with 4 additions and 1 deletions
|
@ -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;
|
||||
|
|
|
@ -81,7 +81,7 @@ if ($res != false) {
|
|||
$statusSkipped[$row['status']] = 0;
|
||||
}
|
||||
$statusSkipped[$row['status']]++;
|
||||
echo "{$info} ERROR skipped {$row['status']}". PHP_EOL;
|
||||
echo "{$info} ERROR skipped status={$row['status']}". PHP_EOL;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue