Skip to content

Commit

Permalink
test size problem
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick-Beuks committed Apr 27, 2024
1 parent 4937935 commit ae6f782
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Gitonomy/Git/Repository.php
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,9 @@ public function getSize()
$totalBytes = 0;
$path = realpath($this->gitDir);
if ($path && file_exists($path)) {
echo "\n";
foreach (new \RecursiveIteratorIterator(new \RecursiveDirectoryIterator($path, \FilesystemIterator::SKIP_DOTS)) as $object) {
echo $object->getPath().'/'.$object->getFileName().':'.$object->getSize()."\n";
$totalBytes += $object->getSize();
}
}
Expand Down

0 comments on commit ae6f782

Please sign in to comment.