Feb. 24, 2025
6:20 p.m.
On second thought, directories can't have hardlinks, so we needn't check anything other than the basename matching and then do the dance as you said.