The second (to walk on the left) is actually the recommended way to walk when there is no footpath because you see the oncoming traffic and they see you. Which is much better than being hit in the back by something you never saw coming.
I realize: and that's why I wrote that, after all, bike paths also have faster traffic on them, notably scooters and those can be very quiet, especially e-scooters.