Skip to content

Commit ff988fa

Browse files
icewind1991backportbot[bot]
authored andcommitted
use the same cached propfind for free space for dav storage
Signed-off-by: Robin Appelman <robin@icewind.nl>
1 parent 838f1ca commit ff988fa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/private/Files/Storage/DAV.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,7 @@ protected function propfind($path) {
275275
'{http://open-collaboration-services.org/ns}share-permissions',
276276
'{DAV:}resourcetype',
277277
'{DAV:}getetag',
278+
'{DAV:}quota-available-bytes',
278279
]
279280
);
280281
$this->statCache->set($path, $response);
@@ -428,8 +429,7 @@ public function free_space($path) {
428429
$this->init();
429430
$path = $this->cleanPath($path);
430431
try {
431-
// TODO: cacheable ?
432-
$response = $this->client->propfind($this->encodePath($path), ['{DAV:}quota-available-bytes']);
432+
$response = $this->propfind($path);
433433
if ($response === false) {
434434
return FileInfo::SPACE_UNKNOWN;
435435
}

0 commit comments

Comments
 (0)