diff options
author | Robin Appelman <robin@icewind.nl> | 2023-08-15 18:33:57 +0200 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2023-09-07 16:25:23 +0200 |
commit | ee8c1a5c609743ba1d73d5f317bd6db050827329 (patch) | |
tree | 297b0025b35a4e4f2159e41c878d212ec80b5332 /apps/dav/lib/Connector | |
parent | 9242e8939fefc97aece696ea5c190029b5ed43c7 (diff) | |
download | nextcloud-server-ee8c1a5c609743ba1d73d5f317bd6db050827329.tar.gz nextcloud-server-ee8c1a5c609743ba1d73d5f317bd6db050827329.zip |
only determine quota_include_external_storage once for quota wrapper
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'apps/dav/lib/Connector')
-rw-r--r-- | apps/dav/lib/Connector/Sabre/Directory.php | 3 |
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"); |