Skip to content

Commit

Permalink
Merge pull request #25255 from nextcloud/dav-storage-copy-directory
Browse files Browse the repository at this point in the history
also use storage copy when dav copying directories
  • Loading branch information
MorrisJobke authored Jan 21, 2021
2 parents ba168a9 + 168978c commit fffdc02
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 @@ -452,7 +452,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 fffdc02

Please sign in to comment.