better handling of folders

This commit is contained in:
Robin Appelman 2015-07-03 13:43:22 +02:00
parent 4b181f73ca
commit b849b7c7f2
1 changed files with 1 additions and 1 deletions

View File

@ -54,7 +54,7 @@ trait CopyDirectory {
if ($this->file_exists($target)) {
$this->unlink($target);
}
parent::copy($source, $target);
$this->mkdir($target);
return $this->copyRecursive($source, $target);
} else {
return parent::copy($source, $target);