Skip to content
Snippets Groups Projects
Unverified Commit 168978c0 authored by Robin Appelman's avatar Robin Appelman
Browse files

also use storage copy when dav copying directories


Signed-off-by: default avatarRobin Appelman <robin@icewind.nl>
parent 4c81f5c4
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
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();
......
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