diff options
author | Olivier Paroz <github@oparoz.com> | 2015-09-30 01:50:15 +0200 |
---|---|---|
committer | Olivier Paroz <github@oparoz.com> | 2015-09-30 01:50:15 +0200 |
commit | 9ea05c898e200a0a3d90ae9f8495950085ea65a9 (patch) | |
tree | d49d03ba50e455d2d62ededf535a1dbbf3faa8e4 /lib | |
parent | c269f658eb2ab8a69287a36b3bb923ae071a40d0 (diff) | |
download | nextcloud-server-9ea05c898e200a0a3d90ae9f8495950085ea65a9.tar.gz nextcloud-server-9ea05c898e200a0a3d90ae9f8495950085ea65a9.zip |
Always send a postScanFile event when done scanning a file
postScanFile is important when scanning external storage as it indicates when the file is ready to be used
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/files/cache/scanner.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/files/cache/scanner.php b/lib/private/files/cache/scanner.php index fb60ee5aa53..bfdab16b645 100644 --- a/lib/private/files/cache/scanner.php +++ b/lib/private/files/cache/scanner.php @@ -186,9 +186,9 @@ class Scanner extends BasicEmitter { } if (!empty($newData)) { $data['fileid'] = $this->addToCache($file, $newData, $fileId); - $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)); } + $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 { $this->removeFromCache($file); } |