When running occ groupfolders:scan, files and folders are mixed up.
** more of a cosmetic issue **
For example:
$ occ groupfolders:scan 3
±----------±--------±------±-------------+
| Folder Id | Folders | Files | Elapsed time |
±----------±--------±------±-------------+
| 3 | 2334 | 179 | 00:00:01 |
±----------±--------±------±-------------+
In reality, the said group folder has 2334 individual files in 179 directories.
It’s been a while since I first noticed it and it is still the same with the latest update (Nextcloud 27.1.1 / Group folders 15.3.1).
It is worth noting that file:scan does not exibit this behaviour