Skip to content
Snippets Groups Projects
Commit ba9b214a authored by Lukas Reschke's avatar Lukas Reschke
Browse files

Merge pull request #17295 from owncloud/scanfilesignature

Fix scanFile signature to avoid boring warning
parents 2eb9936d 9c06975b
Branches
No related tags found
No related merge requests found
...@@ -48,9 +48,11 @@ class Scanner extends \OC\Files\Cache\Scanner { ...@@ -48,9 +48,11 @@ class Scanner extends \OC\Files\Cache\Scanner {
* @param int $reuseExisting * @param int $reuseExisting
* @param int $parentId * @param int $parentId
* @param array | null $cacheData existing data in the cache for the file to be scanned * @param array | null $cacheData existing data in the cache for the file to be scanned
* @param bool $lock set to false to disable getting an additional read lock during scanning
* @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 * @return array an array of metadata of the scanned file
*/ */
public function scanFile($file, $reuseExisting = 0, $parentId = -1, $cacheData = null) { public function scanFile($file, $reuseExisting = 0, $parentId = -1, $cacheData = null, $lock = true) {
try { try {
return parent::scanFile($file, $reuseExisting); return parent::scanFile($file, $reuseExisting);
} catch (ForbiddenException $e) { } catch (ForbiddenException $e) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment