create directory before copying into it