summaryrefslogtreecommitdiffstats
path: root/lib/private
diff options
context:
space:
mode:
authorOlivier Paroz <github@oparoz.com>2015-09-30 01:53:49 +0200
committerOlivier Paroz <github@oparoz.com>2015-09-30 01:53:49 +0200
commitcc64c09ee531e3fe2aebecaeae236e9140df0eb1 (patch)
tree4f44858d9186d28a43e18f7e3a08b9280dcb9e66 /lib/private
parent9ea05c898e200a0a3d90ae9f8495950085ea65a9 (diff)
downloadnextcloud-server-cc64c09ee531e3fe2aebecaeae236e9140df0eb1.tar.gz
nextcloud-server-cc64c09ee531e3fe2aebecaeae236e9140df0eb1.zip
Make postScanFile and postScanFolder available to OC\Files\Utils\Scanner
Diffstat (limited to 'lib/private')
-rw-r--r--lib/private/files/utils/scanner.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/private/files/utils/scanner.php b/lib/private/files/utils/scanner.php
index c70f4beb31d..558a1fba028 100644
--- a/lib/private/files/utils/scanner.php
+++ b/lib/private/files/utils/scanner.php
@@ -99,7 +99,12 @@ class Scanner extends PublicEmitter {
$scanner->listen('\OC\Files\Cache\Scanner', 'scanFolder', function ($path) use ($mount, $emitter) {
$emitter->emit('\OC\Files\Utils\Scanner', 'scanFolder', array($mount->getMountPoint() . $path));
});
-
+ $scanner->listen('\OC\Files\Cache\Scanner', 'postScanFile', function ($path) use ($mount, $emitter) {
+ $emitter->emit('\OC\Files\Utils\Scanner', 'postScanFile', array($mount->getMountPoint() . $path));
+ });
+ $scanner->listen('\OC\Files\Cache\Scanner', 'postScanFolder', function ($path) use ($mount, $emitter) {
+ $emitter->emit('\OC\Files\Utils\Scanner', 'postScanFolder', array($mount->getMountPoint() . $path));
+ });
// propagate etag and mtimes when files are changed or removed
$propagator = $this->propagator;
$propagatorListener = function ($path) use ($mount, $propagator) {