Skip to content

Commit 39907a4

Browse files
seenickcodecome-nc
andauthored
Update lib/private/Files/Utils/Scanner.php
SGTM Co-authored-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com> Signed-off-by: Nick Manning <75833+seenickcode@users.noreply.github.com>
1 parent 68c4740 commit 39907a4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/private/Files/Utils/Scanner.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ public function scan(string $dir = '', $recursive = \OC\Files\Cache\Scanner::SCA
208208
});
209209
$scanner->listen('\OC\Files\Cache\Scanner', 'addToCache', function ($path, $storageId, $data, $fileId) use ($storage): void {
210210
$this->triggerPropagator($storage, $path);
211-
if ($fileId !== -1) {
211+
if ($fileId > 0) {
212212
$this->eventDispatcher->dispatchTyped(new FileCacheUpdated($storage, $path));
213213
} else {
214214
$this->eventDispatcher->dispatchTyped(new NodeAddedToCache($storage, $path));

0 commit comments

Comments
 (0)