only request free space once for external shares

Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
Robin Appelman 2022-03-25 15:24:16 +01:00
parent 802e59243b
commit 5e2dd29aaf
No known key found for this signature in database
GPG key ID: 42B69D8A64526EFB
2 changed files with 5 additions and 1 deletions

View file

@ -429,4 +429,8 @@ class Storage extends DAV implements ISharedStorage, IDisableEncryptionStorage,
return $permissions;
}
public function free_space($path) {
return parent::free_space("");
}
}

View file

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