Implemented dir copying.