diff --git a/src/Task/FileSystem/CopyDir.php b/src/Task/FileSystem/CopyDir.php index f68976977..f5817e4e4 100644 --- a/src/Task/FileSystem/CopyDir.php +++ b/src/Task/FileSystem/CopyDir.php @@ -33,7 +33,7 @@ protected function copyDir($src, $dst) throw new TaskException($this, "Cannot open source directory '" . $src . "'"); } if (!is_dir($dst)) { - mkdir($dst); + mkdir($dst, 0777, true); } while (false !== ($file = readdir($dir))) { if (($file !== '.') && ($file !== '..')) {