Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2022-03-25 17:24:16 +0300
committerRobin Appelman <robin@icewind.nl>2022-04-04 17:48:27 +0300
commit5e2dd29aafeb40ba310e12766c8a5b4da564c869 (patch)
treed59f3b992f369397601088549eac46a9f493ec4b
parent802e59243b79a79b686c55c172d0b3f254b97270 (diff)
only request free space once for external shares
Signed-off-by: Robin Appelman <robin@icewind.nl>
-rw-r--r--apps/files_sharing/lib/External/Storage.php4
-rw-r--r--lib/private/Files/Cache/Propagator.php2
2 files changed, 5 insertions, 1 deletions
diff --git a/apps/files_sharing/lib/External/Storage.php b/apps/files_sharing/lib/External/Storage.php
index 6a784f91fb1..296e7ddf85b 100644
--- a/apps/files_sharing/lib/External/Storage.php
+++ b/apps/files_sharing/lib/External/Storage.php
@@ -429,4 +429,8 @@ class Storage extends DAV implements ISharedStorage, IDisableEncryptionStorage,
return $permissions;
}
+
+ public function free_space($path) {
+ return parent::free_space("");
+ }
}
diff --git a/lib/private/Files/Cache/Propagator.php b/lib/private/Files/Cache/Propagator.php
index 0d2bc9ab078..270b2b013f5 100644
--- a/lib/private/Files/Cache/Propagator.php
+++ b/lib/private/Files/Cache/Propagator.php
@@ -145,7 +145,7 @@ class Propagator implements IPropagator {
$this->batch[$internalPath] = [
'hash' => md5($internalPath),
'time' => $time,
- 'size' => $sizeDifference
+ 'size' => $sizeDifference,
];
} else {
$this->batch[$internalPath]['size'] += $sizeDifference;