You’re close enough. It’s part of an old footpath that ran through from Bodafon Lane through what became the Nant Y Gamar quarry (that now has the electricity substation in it) coming out on the lane going up to Nant Y Gamar. I saw the gate from Bodafon Lane a few years back and was interested enough to make my way through the undergrowth to take a closer look.