"Password?" she said.
"Caput Draconis," said Percy, and the portrait swung forward to reveal a round hole in the wall. They all scrambled through it -- Neville needed a leg up -- and found themselves in the Gryffindor common room, a cozy, round room full of squashy armchairs.
[1] Percy directed the girls through one door to their dormitory and the boys through another. At the top of a spiral staircase -- they were obviously in one of the towers -- they found their beds at last: five four-posters hung with deep red, velvet curtains. Their trunks had already been brought up. Too tired to talk much, they pulled on their pajamas and fell into bed.
. . . . . .
[2] A pair of goblins bowed them through the silver doors and they were in a vast marble hall.
–– Harry Potter and the Sorcerer's Stone
[1] and [2] has the same structure and gets me puzzled. In [2], there obviously seems that the goblins are not going to move along with their guests. But in [1]. does Percy move along with the girls and then boys? It’s very likely he doesn’t move but just tell them the way they have to pass through. Is this right? If yes, is there no chance this expression be used when he moves along with the guided?