From 69331b22c6c037b105a2da6240dd566ddaa3c97c Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Thu, 21 Jan 2021 17:58:20 +0100 Subject: [PATCH] also use storage copy when dav copying directories Signed-off-by: Robin Appelman --- apps/dav/lib/Connector/Sabre/Directory.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/dav/lib/Connector/Sabre/Directory.php b/apps/dav/lib/Connector/Sabre/Directory.php index d7ba67239d507..f41bbbbf130ee 100644 --- a/apps/dav/lib/Connector/Sabre/Directory.php +++ b/apps/dav/lib/Connector/Sabre/Directory.php @@ -451,7 +451,7 @@ public function moveInto($targetName, $fullSourcePath, INode $sourceNode) { public function copyInto($targetName, $sourcePath, INode $sourceNode) { - if ($sourceNode instanceof File) { + if ($sourceNode instanceof File || $sourceNode instanceof Directory) { $destinationPath = $this->getPath() . '/' . $targetName; $sourcePath = $sourceNode->getPath();