aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Files/Storage/LocalRootStorage.php
blob: ae0575fe0430a5cadbbfe573ac2878b44a7ad010 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?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;

class LocalRootStorage extends Local {
	public function getScanner($path = '', $storage = null) {
		if (!$storage) {
			$storage = $this;
		}
		if (!isset($storage->scanner)) {
			$storage->scanner = new LocalRootScanner($storage);
		}
		return $storage->scanner;
	}
}