Skip to content
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

Merged

Conversation

burzum
Copy link
Contributor

@burzum burzum commented Mar 12, 2015

This should finish #126

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);
Copy link
Member

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

Copy link
Contributor Author

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.

Copy link
Contributor

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)

burzum added a commit that referenced this pull request Mar 15, 2015
…ion-check

Bugfix/copy dir recursive destination check
@burzum burzum merged commit 5e822d3 into consolidation:master Mar 15, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants