fix: Avoid updating size when calling touch on a file

Signed-off-by: Julius Härtl <jus@bitgrid.net>
pull/45233/head
Julius Härtl 2 weeks ago
parent 16ac7c1a40
commit 24e0d5023c
No known key found for this signature in database
GPG Key ID: 4C614C6ED2CDE6DF

@ -1182,7 +1182,7 @@ class View {
$this->writeUpdate($storage, $internalPath, null, $isCreateOperation ? $sizeDifference : null);
}
if ($result !== false && in_array('touch', $hooks)) {
$this->writeUpdate($storage, $internalPath, $extraParam);
$this->writeUpdate($storage, $internalPath, $extraParam, 0);
}
if ((in_array('write', $hooks) || in_array('delete', $hooks)) && ($operation !== 'fopen' || $result === false)) {

Loading…
Cancel
Save