aboutsummaryrefslogtreecommitdiffstats
path: root/apps/dav
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2023-08-15 18:33:57 +0200
committerRobin Appelman <robin@icewind.nl>2023-08-18 14:25:28 +0200
commitb6c3507aa0e9c1cd17e8030b4f105199aecb6673 (patch)
tree451d1288af2acdaa5e5ec041db332cd6d94e9446 /apps/dav
parentf0b70e539b34fb5c3f7e57f58f37f83c2b4e597f (diff)
downloadnextcloud-server-b6c3507aa0e9c1cd17e8030b4f105199aecb6673.tar.gz
nextcloud-server-b6c3507aa0e9c1cd17e8030b4f105199aecb6673.zip
only determine quota_include_external_storage once for quota wrapper
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'apps/dav')
-rw-r--r--apps/dav/lib/Connector/Sabre/Directory.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/dav/lib/Connector/Sabre/Directory.php b/apps/dav/lib/Connector/Sabre/Directory.php
index 4367eabdbef..49354deb778 100644
--- a/apps/dav/lib/Connector/Sabre/Directory.php
+++ b/apps/dav/lib/Connector/Sabre/Directory.php
@@ -325,6 +325,9 @@ class Directory extends \OCA\DAV\Connector\Sabre\Node implements \Sabre\DAV\ICol
* @return array
*/
public function getQuotaInfo() {
+ if ($this->quotaInfo) {
+ return $this->quotaInfo;
+ }
$relativePath = $this->fileView->getRelativePath($this->info->getPath());
if ($relativePath === null) {
$this->getLogger()->warning("error while getting quota as the relative path cannot be found");