Dont output paths in scan.php

This commit is contained in:
Robin Appelman 2015-11-25 15:21:01 +01:00
parent 50f6817ce9
commit 10df0780ea
1 changed files with 0 additions and 8 deletions

View File

@ -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