optimised the move of partitioned directories