Create directory before copying file