The one that knows rape of children is wrong. If my pastor touched a child his butt would be in prison, not moved to another church.
The Catholic Church in some places did allow these men to continue in their work, after having undergone psychological counseling. That was what was done in the 70's and 80's when it was thought that you could 'cure' people of being molesters. Looking back, from the beginning of the 21st century, it's easy to say that they were wrong, but EVERY group did this, not just the Church.
Another problem the Church had was the unwillingness for parents to put their kids through the horror of having to stand up and face their molester. Many just let it go, but their kids decided, as adults, to follow up on the abuse. Unfortunately, in most cases, the statute of limitations had run out, so nothing could legally be done to the priest. But the Church did defrock some men and strip them of their priestly priveleges, even if they weren't 'convicted' of anything.
The Catholic Church is not perfect, because she is run by human beings, the same as every other religious organization on the face of the earth.