Skip to content

Commit 6a1abcd

Browse files
committed
TMP: work around sekelton files not updating the folder size
Signed-off-by: Julius Härtl <jus@bitgrid.net>
1 parent 228bf47 commit 6a1abcd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/private/Files/ObjectStore/ObjectStoreStorage.php

+2
Original file line numberDiff line numberDiff line change
@@ -350,6 +350,7 @@ public function fopen($path, $mode) {
350350
$handle = fopen($tmpFile, $mode);
351351
return CallbackWrapper::wrap($handle, null, null, function () use ($path, $tmpFile) {
352352
$this->writeBack($tmpFile, $path);
353+
$this->getUpdater()->update($path);
353354
});
354355
case 'a':
355356
case 'ab':
@@ -367,6 +368,7 @@ public function fopen($path, $mode) {
367368
$handle = fopen($tmpFile, $mode);
368369
return CallbackWrapper::wrap($handle, null, null, function () use ($path, $tmpFile) {
369370
$this->writeBack($tmpFile, $path);
371+
$this->getUpdater()->update($path);
370372
});
371373
}
372374
return false;

0 commit comments

Comments
 (0)