LocalRootStorage.php 497 B

1234567891011121314151617181920212223
  1. <?php
  2. declare(strict_types=1);
  3. /**
  4. * SPDX-FileCopyrightText: 2020 Nextcloud GmbH and Nextcloud contributors
  5. * SPDX-License-Identifier: AGPL-3.0-or-later
  6. */
  7. namespace OC\Files\Storage;
  8. use OC\Files\Cache\LocalRootScanner;
  9. class LocalRootStorage extends Local {
  10. public function getScanner($path = '', $storage = null) {
  11. if (!$storage) {
  12. $storage = $this;
  13. }
  14. if (!isset($storage->scanner)) {
  15. $storage->scanner = new LocalRootScanner($storage);
  16. }
  17. return $storage->scanner;
  18. }
  19. }