Rearrange files to folders