Merge pull request #25261 from nextcloud/backport/25255/stable20
[stable20] also use storage copy when dav copying directories
This commit is contained in:
commit
1a1beafeeb
|
@ -452,7 +452,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();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue