diff --git a/src/Task/FileSystem/CopyDir.php b/src/Task/FileSystem/CopyDir.php index df38f1612..991d41703 100644 --- a/src/Task/FileSystem/CopyDir.php +++ b/src/Task/FileSystem/CopyDir.php @@ -58,6 +58,7 @@ protected function copyDir($src, $dst) if (false === $dir) { throw new TaskException($this, "Cannot open source directory '" . $src . "'"); } + @mkdir($dst, $this->chmod); if (!is_dir($dst)) { mkdir($dst, $this->chmod, true); }