-
Notifications
You must be signed in to change notification settings - Fork 304
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bugfix/copy dir recursive destination check #145
Bugfix/copy dir recursive destination check #145
Conversation
The default value for new folders is 0777. This can be changed by calling chmod().
protected function copyDir($src, $dst) | ||
{ | ||
$dir = @opendir($src); | ||
if (false === $dir) { | ||
throw new TaskException($this, "Cannot open source directory '" . $src . "'"); | ||
} | ||
@mkdir($dst); | ||
@mkdir($dst, $this->chmod); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this should be removed. I think the next lines do the same job
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why? It will set the default permission there as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This line was the cause of the error in #125 ...
Please see #126 (comment)
…ion-check Bugfix/copy dir recursive destination check
This should finish #126