also use storage copy when dav copying directories

Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
Robin Appelman 2021-01-21 17:58:20 +01:00 committed by backportbot[bot]
parent 3fbb1c4370
commit 69331b22c6
1 changed files with 1 additions and 1 deletions

View File

@ -451,7 +451,7 @@ class Directory extends \OCA\DAV\Connector\Sabre\Node implements \Sabre\DAV\ICol
public function copyInto($targetName, $sourcePath, INode $sourceNode) { public function copyInto($targetName, $sourcePath, INode $sourceNode) {
if ($sourceNode instanceof File) { if ($sourceNode instanceof File || $sourceNode instanceof Directory) {
$destinationPath = $this->getPath() . '/' . $targetName; $destinationPath = $this->getPath() . '/' . $targetName;
$sourcePath = $sourceNode->getPath(); $sourcePath = $sourceNode->getPath();