Find an old children movie

Can anyone help me? An old children’s movie in which some children find a house in the forest that was the home of a giant. The giant imprisons them in cages. I remember one of the children had put flour or sugar on the path so that they could return.

This sounds a lot like the classic “Hansel and Gretel” tale, but in this one there is a witch, not a giant:

Reminds me of Pulgarcito (1958)