From a3e75bbadfaefc78d0b86b91f5d7312ea5a26851 Mon Sep 17 00:00:00 2001 From: Peter Gasser Date: Sat, 28 Feb 2015 02:09:49 +0100 Subject: [PATCH] CopyDir: create destination recursively --- src/Task/FileSystem/CopyDir.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 !== '..')) {