mirror of
https://github.com/nextcloud/server.git
synced 2024-12-29 16:38:28 +00:00
f28e74b7a8
Signed-off-by: provokateurin <kate@provokateurin.de>
23 lines
548 B
PHP
23 lines
548 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
/**
|
|
* SPDX-FileCopyrightText: 2020 Nextcloud GmbH and Nextcloud contributors
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
|
*/
|
|
namespace OC\Files\Storage;
|
|
|
|
use OC\Files\Cache\LocalRootScanner;
|
|
use OCP\Files\Cache\IScanner;
|
|
use OCP\Files\Storage\IStorage;
|
|
|
|
class LocalRootStorage extends Local {
|
|
public function getScanner(string $path = '', ?IStorage $storage = null): IScanner {
|
|
if (!$storage) {
|
|
$storage = $this;
|
|
}
|
|
return $storage->scanner ?? ($storage->scanner = new LocalRootScanner($storage));
|
|
}
|
|
}
|