Rearranges file locations.