Aluminium triflate catalysed O-glycosidation: temperature-switched selective Ferrier rearrangement or direct addition with alcohols.