diff options
author | Vincent Petry <pvince81@owncloud.com> | 2015-03-04 10:07:42 +0100 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2015-03-04 10:07:42 +0100 |
commit | aa11b83158ab70152a3804ef30281971e0a5a7c9 (patch) | |
tree | 61a73a691cfb2bc1ab0a5b8ba29294a43cbc8789 /lib | |
parent | ac104416004f7fde56ca633a3aa5a485b4997078 (diff) | |
parent | 09ac2df1f8e26f52fb662a6cf025013b7ff207f9 (diff) | |
download | nextcloud-server-aa11b83158ab70152a3804ef30281971e0a5a7c9.tar.gz nextcloud-server-aa11b83158ab70152a3804ef30281971e0a5a7c9.zip |
Merge pull request #14682 from owncloud/issue/14681-noop-scanner-outdated
Update scanFile() and scanChildren() to the new signature of the parent ...
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/files/objectstore/noopscanner.php | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/lib/private/files/objectstore/noopscanner.php b/lib/private/files/objectstore/noopscanner.php index 59ca1771971..7750a8d5529 100644 --- a/lib/private/files/objectstore/noopscanner.php +++ b/lib/private/files/objectstore/noopscanner.php @@ -33,10 +33,11 @@ class NoopScanner extends Scanner { * * @param string $file * @param int $reuseExisting - * @param bool $parentExistsInCache - * @return array with metadata of the scanned file + * @param int $parentId + * @param array|null $cacheData existing data in the cache for the file to be scanned + * @return array an array of metadata of the scanned file */ - public function scanFile($file, $reuseExisting = 0, $parentExistsInCache = false) { + public function scanFile($file, $reuseExisting = 0, $parentId = -1, $cacheData = null) { return array(); } @@ -58,11 +59,11 @@ class NoopScanner extends Scanner { * @param string $path * @param bool $recursive * @param int $reuse + * @param array $folderData existing cache data for the folder to be scanned * @return int the size of the scanned folder or -1 if the size is unknown at this stage */ - public function scanChildren($path, $recursive = Storage::SCAN_RECURSIVE, $reuse = -1) { - $size = 0; - return $size; + protected function scanChildren($path, $recursive = self::SCAN_RECURSIVE, $reuse = -1, $folderData = null) { + return 0; } /** |