Rearanges directory