mirror of
https://github.com/nextcloud/server.git
synced 2026-02-18 18:28:50 -05:00
Merge pull request #45233 from nextcloud/fix/touch-propagate-size
fix: Avoid updating size when calling touch on a file
This commit is contained in:
commit
2d40dae4af
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Reference in a new issue