summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorOlivier Paroz <github@oparoz.com>2015-09-30 01:50:15 +0200
committerOlivier Paroz <github@oparoz.com>2015-09-30 01:50:15 +0200
commit9ea05c898e200a0a3d90ae9f8495950085ea65a9 (patch)
treed49d03ba50e455d2d62ededf535a1dbbf3faa8e4 /lib
parentc269f658eb2ab8a69287a36b3bb923ae071a40d0 (diff)
downloadnextcloud-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.php4
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);
}