Rearrangement of directories