Rearranges files