Creating directories if they don't exist before copying a file.