We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8e88b51 commit c9d65bdCopy full SHA for c9d65bd
Command/AboutCommand.php
@@ -109,6 +109,10 @@ private static function formatFileSize(string $path): string
109
if (is_file($path)) {
110
$size = filesize($path) ?: 0;
111
} else {
112
+ if (!is_dir($path)) {
113
+ return 'n/a';
114
+ }
115
+
116
$size = 0;
117
foreach (new \RecursiveIteratorIterator(new \RecursiveDirectoryIterator($path, \RecursiveDirectoryIterator::SKIP_DOTS | \RecursiveDirectoryIterator::FOLLOW_SYMLINKS)) as $file) {
118
if ($file->isReadable()) {
0 commit comments