Skip to content
Snippets Groups Projects
Commit b849b7c7 authored by Robin Appelman's avatar Robin Appelman
Browse files

better handling of folders

parent 4b181f73
Branches
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment