better handling of folders
This commit is contained in:
parent
4b181f73ca
commit
b849b7c7f2
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue