Browse Source
only request free space once for external shares
Signed-off-by: Robin Appelman <robin@icewind.nl>
pull/31713/head
Robin Appelman
4 years ago
No known key found for this signature in database
GPG Key ID: 42B69D8A64526EFB
2 changed files with
5 additions and
1 deletions
-
apps/files_sharing/lib/External/Storage.php
-
lib/private/Files/Cache/Propagator.php
|
|
|
@ -429,4 +429,8 @@ class Storage extends DAV implements ISharedStorage, IDisableEncryptionStorage, |
|
|
|
|
|
|
|
return $permissions; |
|
|
|
} |
|
|
|
|
|
|
|
public function free_space($path) { |
|
|
|
return parent::free_space(""); |
|
|
|
} |
|
|
|
} |
|
|
|
@ -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; |
|
|
|
|