Rearrange the directory