diff options
author | Robin Appelman <robin@icewind.nl> | 2022-03-25 15:24:16 +0100 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2022-04-04 16:48:27 +0200 |
commit | 5e2dd29aafeb40ba310e12766c8a5b4da564c869 (patch) | |
tree | d59f3b992f369397601088549eac46a9f493ec4b | |
parent | 802e59243b79a79b686c55c172d0b3f254b97270 (diff) | |
download | nextcloud-server-5e2dd29aafeb40ba310e12766c8a5b4da564c869.tar.gz nextcloud-server-5e2dd29aafeb40ba310e12766c8a5b4da564c869.zip |
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.php | 4 | ||||
-rw-r--r-- | lib/private/Files/Cache/Propagator.php | 2 |
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; |