From 10df0780eaf3572ae9cf3d29156e296cc96646da Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Wed, 25 Nov 2015 15:21:01 +0100 Subject: [PATCH] Dont output paths in scan.php --- apps/files/ajax/scan.php | 8 -------- 1 file changed, 8 deletions(-) diff --git a/apps/files/ajax/scan.php b/apps/files/ajax/scan.php index 491adaa9b88..759f2d15f84 100644 --- a/apps/files/ajax/scan.php +++ b/apps/files/ajax/scan.php @@ -49,7 +49,6 @@ foreach ($users as $user) { $eventSource->send('user', $user); $scanner = new \OC\Files\Utils\Scanner($user, \OC::$server->getDatabaseConnection()); $scanner->listen('\OC\Files\Utils\Scanner', 'scanFile', array($listener, 'file')); - $scanner->listen('\OC\Files\Utils\Scanner', 'scanFolder', array($listener, 'folder')); try { if ($force) { $scanner->scan($dir); @@ -81,13 +80,6 @@ class ScanListener { $this->eventSource = $eventSource; } - /** - * @param string $path - */ - public function folder($path) { - $this->eventSource->send('folder', $path); - } - public function file() { $this->fileCount++; if ($this->fileCount > $this->lastCount + 20) { //send a count update every 20 files -- 2.39.5