diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2015-11-25 20:01:52 +0100 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2015-11-25 20:01:52 +0100 |
commit | 6b5460f7557861ed78edeac48fe2b95f6fdf2b05 (patch) | |
tree | c3a88388408c1f0573ab33a73066c89c20112fe0 /apps | |
parent | 49779bb651b02050f37a00a92c770ec1d2869966 (diff) | |
parent | 10df0780eaf3572ae9cf3d29156e296cc96646da (diff) | |
download | nextcloud-server-6b5460f7557861ed78edeac48fe2b95f6fdf2b05.tar.gz nextcloud-server-6b5460f7557861ed78edeac48fe2b95f6fdf2b05.zip |
Merge pull request #20733 from owncloud/scan-eventsource-no-paths
Dont output paths in scan.php
Diffstat (limited to 'apps')
-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 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 |