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
parent
commit
5e2dd29aaf
No known key found for this signature in database GPG Key ID: 42B69D8A64526EFB
  1. 4
      apps/files_sharing/lib/External/Storage.php
  2. 2
      lib/private/Files/Cache/Propagator.php

4
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("");
}
}

2
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;

Loading…
Cancel
Save