mirror of
https://github.com/apple/container.git
synced 2026-10-13 17:49:16 +00:00
`.totalFileAllocatedSizeKey` returns nil for directories on Darwin but on Linux it returns `st_blocks * st_blksize` (4 KB each) in Foundation. The empty-store test summed three directory inodes on Linux and failed with `#expect(size == 0)`. This change adds filter on the enumerator to regular files only so the totals are content-only and will work for both Darwin and Linux.