Selaa lähdekoodia

Merge pull request #35353 from nextcloud/artonge/fix/cache_update_when_file_size_equal_0

Update cache when file size === 0
tags/v26.0.0beta1
Louis 1 vuosi sitten
vanhempi
commit
bbc1f6dbbb
No account linked to committer's email address
1 muutettua tiedostoa jossa 3 lisäystä ja 3 poistoa
  1. 3
    3
      lib/private/Files/View.php

+ 3
- 3
lib/private/Files/View.php Näytä tiedosto

@@ -1191,13 +1191,13 @@ class View {
throw $e;
}

if ($result && in_array('delete', $hooks)) {
if ($result !== false && in_array('delete', $hooks)) {
$this->removeUpdate($storage, $internalPath);
}
if ($result && in_array('write', $hooks, true) && $operation !== 'fopen' && $operation !== 'touch') {
if ($result !== false && in_array('write', $hooks, true) && $operation !== 'fopen' && $operation !== 'touch') {
$this->writeUpdate($storage, $internalPath);
}
if ($result && in_array('touch', $hooks)) {
if ($result !== false && in_array('touch', $hooks)) {
$this->writeUpdate($storage, $internalPath, $extraParam);
}


Loading…
Peruuta
Tallenna