Merge pull request #25262 from nextcloud/backport/25255/stable19

[stable19] also use storage copy when dav copying directories
This commit is contained in:
Roeland Jago Douma 2021-01-22 14:37:04 +01:00 committed by GitHub
commit 7f3faa7165
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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) {
if ($sourceNode instanceof File) {
if ($sourceNode instanceof File || $sourceNode instanceof Directory) {
$destinationPath = $this->getPath() . '/' . $targetName;
$sourcePath = $sourceNode->getPath();