summaryrefslogtreecommitdiffstats
path: root/apps/files/ajax
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2015-11-25 15:21:01 +0100
committerRobin Appelman <icewind@owncloud.com>2015-11-25 15:21:01 +0100
commit10df0780eaf3572ae9cf3d29156e296cc96646da (patch)
tree6a1cc454b57ba700ad000912018a7cc073a6a092 /apps/files/ajax
parent50f6817ce99f3870e1e8dea92eaa35a0c40553ba (diff)
downloadnextcloud-server-10df0780eaf3572ae9cf3d29156e296cc96646da.tar.gz
nextcloud-server-10df0780eaf3572ae9cf3d29156e296cc96646da.zip
Dont output paths in scan.php
Diffstat (limited to 'apps/files/ajax')
-rw-r--r--apps/files/ajax/scan.php8
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