diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/files/cache/scanner.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/private/files/cache/scanner.php b/lib/private/files/cache/scanner.php index 4778a6803ba..166c4e89b0a 100644 --- a/lib/private/files/cache/scanner.php +++ b/lib/private/files/cache/scanner.php @@ -155,6 +155,8 @@ class Scanner extends BasicEmitter { $data['fileid'] = $this->addToCache($file, $newData); $this->emit('\OC\Files\Cache\Scanner', 'postScanFile', array($file, $this->storageId)); \OC_Hook::emit('\OC\Files\Cache\Scanner', 'post_scan_file', array('path' => $file, 'storage' => $this->storageId)); + } else if (!empty($cacheData)) { + $data['fileid'] = $cacheData['fileid']; } } else { $this->removeFromCache($file); |