summaryrefslogtreecommitdiffstats
path: root/apps/dav/lib
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2022-03-28 15:32:34 +0200
committerRobin Appelman <robin@icewind.nl>2022-03-28 15:57:28 +0200
commit5ae6cefd57b2374802b428f9e03c60ba951c5607 (patch)
tree647b6add8977e7c89419d24fbcb99edfa42d2d83 /apps/dav/lib
parentc407bb978684f00ce07a4f168d3e380da3812028 (diff)
downloadnextcloud-server-5ae6cefd57b2374802b428f9e03c60ba951c5607.tar.gz
nextcloud-server-5ae6cefd57b2374802b428f9e03c60ba951c5607.zip
dont re-query fileinfo when getting dav quota
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'apps/dav/lib')
-rw-r--r--apps/dav/lib/Connector/Sabre/Directory.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/apps/dav/lib/Connector/Sabre/Directory.php b/apps/dav/lib/Connector/Sabre/Directory.php
index 3ae4416d363..bd92b3b22a4 100644
--- a/apps/dav/lib/Connector/Sabre/Directory.php
+++ b/apps/dav/lib/Connector/Sabre/Directory.php
@@ -327,8 +327,7 @@ class Directory extends \OCA\DAV\Connector\Sabre\Node implements \Sabre\DAV\ICol
return $this->quotaInfo;
}
try {
- $info = $this->fileView->getFileInfo($this->path, false);
- $storageInfo = \OC_Helper::getStorageInfo($this->info->getPath(), $info);
+ $storageInfo = \OC_Helper::getStorageInfo($this->info->getPath(), $this->info, false);
if ($storageInfo['quota'] === \OCP\Files\FileInfo::SPACE_UNLIMITED) {
$free = \OCP\Files\FileInfo::SPACE_UNLIMITED;
} else {