]> source.dussan.org Git - nextcloud-server.git/commitdiff
Dont output paths in scan.php
authorRobin Appelman <icewind@owncloud.com>
Wed, 25 Nov 2015 14:21:01 +0000 (15:21 +0100)
committerRobin Appelman <icewind@owncloud.com>
Wed, 25 Nov 2015 14:21:01 +0000 (15:21 +0100)
apps/files/ajax/scan.php

index 491adaa9b880b9d9a1118eb8d29e5234e420877d..759f2d15f84fed9dcba81b9e172bf8cf4f781e3a 100644 (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