Skip to content
Snippets Groups Projects
Unverified Commit fffdc02a authored by Morris Jobke's avatar Morris Jobke Committed by GitHub
Browse files

Merge pull request #25255 from nextcloud/dav-storage-copy-directory

also use storage copy when dav copying directories
parents ba168a98 168978c0
No related branches found
No related tags found
No related merge requests found
...@@ -452,7 +452,7 @@ class Directory extends \OCA\DAV\Connector\Sabre\Node implements \Sabre\DAV\ICol ...@@ -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();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment