create the directories before copy