How to do after fsck_hfs fails to repair "invalid directory count" after 3 attempts multiple times?
This would be the kind of task I'd be throwing at one of the high-end 'fixit' apps, Disk Warrior or TechTool Pro etc. Both of these can in essence rebuild the directory from scratch, then replace the old one.
Disk Warrior was always the king of this, but can't yet handle APFS. TTP 14 can handle APFS &amp; seems to handle it well so far [I've only recently got the upgrade].
idk if any of them do a free trial.