Skip to content

Commit

Permalink
Update utils.inc.php
Browse files Browse the repository at this point in the history
  • Loading branch information
zoic21 authored Jun 11, 2024
1 parent 490345e commit 8e81e54
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion core/php/utils.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -859,7 +859,11 @@ function getDirectorySize($path) {
$path = realpath($path);
if($path!==false && $path!='' && file_exists($path) && !is_link($path)){
foreach(new RecursiveIteratorIterator(new RecursiveDirectoryIterator($path, FilesystemIterator::SKIP_DOTS)) as $object){
$bytestotal += $object->getSize();
try {
$bytestotal += $object->getSize();
} catch (\Throwable $th) {

}
}
}
return $bytestotal;
Expand Down

0 comments on commit 8e81e54

Please sign in to comment.