diff options
author | Julius Härtl <jus@bitgrid.net> | 2024-05-08 11:50:20 +0200 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2024-05-08 11:50:20 +0200 |
commit | 24e0d5023c17e9e955b7d766f037df1cef9b96a4 (patch) | |
tree | 7a3b3a962d29660b2a2a4a56e30f68874e4b8fa7 /lib/private/Files/View.php | |
parent | 16ac7c1a404f919ee3385359ab13285cd5ff2411 (diff) | |
download | nextcloud-server-24e0d5023c17e9e955b7d766f037df1cef9b96a4.tar.gz nextcloud-server-24e0d5023c17e9e955b7d766f037df1cef9b96a4.zip |
fix: Avoid updating size when calling touch on a file
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'lib/private/Files/View.php')
-rw-r--r-- | lib/private/Files/View.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Files/View.php b/lib/private/Files/View.php index 98b597dbd4d..a6e57d775ed 100644 --- a/lib/private/Files/View.php +++ b/lib/private/Files/View.php @@ -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)) { |