Skip to content

Commit

Permalink
TMP: work around sekelton files not updating the folder size
Browse files Browse the repository at this point in the history
Signed-off-by: Julius Härtl <jus@bitgrid.net>
  • Loading branch information
juliusknorr committed Oct 29, 2021
1 parent 228bf47 commit 6a1abcd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/private/Files/ObjectStore/ObjectStoreStorage.php
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,7 @@ public function fopen($path, $mode) {
$handle = fopen($tmpFile, $mode);
return CallbackWrapper::wrap($handle, null, null, function () use ($path, $tmpFile) {
$this->writeBack($tmpFile, $path);
$this->getUpdater()->update($path);
});
case 'a':
case 'ab':
Expand All @@ -367,6 +368,7 @@ public function fopen($path, $mode) {
$handle = fopen($tmpFile, $mode);
return CallbackWrapper::wrap($handle, null, null, function () use ($path, $tmpFile) {
$this->writeBack($tmpFile, $path);
$this->getUpdater()->update($path);
});
}
return false;
Expand Down

0 comments on commit 6a1abcd

Please sign in to comment.