Skip to content

Commit

Permalink
Merge pull request #25262 from nextcloud/backport/25255/stable19
Browse files Browse the repository at this point in the history
[stable19] also use storage copy when dav copying directories
  • Loading branch information
rullzer committed Jan 22, 2021
2 parents 7365caa + 69331b2 commit 7f3faa7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/dav/lib/Connector/Sabre/Directory.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit 7f3faa7

Please sign in to comment.