diff options
author | Robin Appelman <icewind@owncloud.com> | 2015-11-25 15:21:01 +0100 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2015-11-26 16:35:52 +0100 |
commit | fab59179f1661da4862336fb8ea450c80def26d4 (patch) | |
tree | ad3cd26a5427feeb60f9d80cc74518b4e7262f89 | |
parent | ff214a3fb2b2693202b68d5f6bd8ea64a41ce1a5 (diff) | |
download | nextcloud-server-fab59179f1661da4862336fb8ea450c80def26d4.tar.gz nextcloud-server-fab59179f1661da4862336fb8ea450c80def26d4.zip |
Dont output paths in scan.php
-rw-r--r-- | apps/files/ajax/scan.php | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/apps/files/ajax/scan.php b/apps/files/ajax/scan.php index f8977c2971e..455fb566ba6 100644 --- a/apps/files/ajax/scan.php +++ b/apps/files/ajax/scan.php @@ -21,7 +21,6 @@ $listener = new ScanListener($eventSource); 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')); if ($force) { $scanner->scan($dir); @@ -50,13 +49,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 |