Skip to content

Commit 4a6c2f3

Browse files
Merge branch '5.4' into 6.2
* 5.4: [Validator] Add missing validator translations in Polish language [HttpClient] Fix encoding some characters in query strings [FrameworkBundle] Ignore missing directories in about command Revert "[Messenger] Respect `isRetryable` decision of the retry strategy when deciding if failed message should be re-delivered"
2 parents 535748a + c9d65bd commit 4a6c2f3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Command/AboutCommand.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,10 @@ private static function formatFileSize(string $path): string
101101
if (is_file($path)) {
102102
$size = filesize($path) ?: 0;
103103
} else {
104+
if (!is_dir($path)) {
105+
return 'n/a';
106+
}
107+
104108
$size = 0;
105109
foreach (new \RecursiveIteratorIterator(new \RecursiveDirectoryIterator($path, \RecursiveDirectoryIterator::SKIP_DOTS | \RecursiveDirectoryIterator::FOLLOW_SYMLINKS)) as $file) {
106110
if ($file->isReadable()) {

0 commit comments

Comments
 (0)