Skip to content

Commit

Permalink
CopyDir: create destination recursively
Browse files Browse the repository at this point in the history
  • Loading branch information
boedah committed Feb 28, 2015
1 parent 4bcc7ec commit a3e75bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Task/FileSystem/CopyDir.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 !== '..')) {
Expand Down

0 comments on commit a3e75bb

Please sign in to comment.