diff options
author | Robin Appelman <robin@icewind.nl> | 2021-01-21 17:58:20 +0100 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2021-01-21 17:59:28 +0100 |
commit | 168978c02e042ca10746f3c7a8692fb36f6cd13e (patch) | |
tree | ad7a8077d821a4d50e39f3d11bd715d5bdf3006e /apps/dav/lib/Connector/Sabre/Directory.php | |
parent | 4c81f5c4ad3942cd8f4b8e9e67b956c0181ac435 (diff) | |
download | nextcloud-server-168978c02e042ca10746f3c7a8692fb36f6cd13e.tar.gz nextcloud-server-168978c02e042ca10746f3c7a8692fb36f6cd13e.zip |
also use storage copy when dav copying directories
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'apps/dav/lib/Connector/Sabre/Directory.php')
-rw-r--r-- | apps/dav/lib/Connector/Sabre/Directory.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/dav/lib/Connector/Sabre/Directory.php b/apps/dav/lib/Connector/Sabre/Directory.php index 8052f81929c..f2227f70151 100644 --- a/apps/dav/lib/Connector/Sabre/Directory.php +++ b/apps/dav/lib/Connector/Sabre/Directory.php @@ -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(); |