Merge pull request #25261 from nextcloud/backport/25255/stable20

[stable20] also use storage copy when dav copying directories
This commit is contained in:
Roeland Jago Douma 2021-01-22 14:37:01 +01:00 committed by GitHub
commit 1a1beafeeb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View 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();