]> source.dussan.org Git - nextcloud-server.git/commitdiff
also use storage copy when dav copying directories 25255/head
authorRobin Appelman <robin@icewind.nl>
Thu, 21 Jan 2021 16:58:20 +0000 (17:58 +0100)
committerRobin Appelman <robin@icewind.nl>
Thu, 21 Jan 2021 16:59:28 +0000 (17:59 +0100)
Signed-off-by: Robin Appelman <robin@icewind.nl>
apps/dav/lib/Connector/Sabre/Directory.php

index 8052f81929c7b0757712655caef29f9d7df99318..f2227f701517e95296cb6d3846c8422079b2e8a8 100644 (file)
@@ -452,7 +452,7 @@ class Directory extends \OCA\DAV\Connector\Sabre\Node implements \Sabre\DAV\ICol
 
 
        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();