Skip to content
Snippets Groups Projects
Commit 6b5460f7 authored by Thomas Müller's avatar Thomas Müller
Browse files

Merge pull request #20733 from owncloud/scan-eventsource-no-paths

Dont output paths in scan.php
parents 49779bb6 10df0780
Branches
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment