FilesystemHelper.php 637 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. /**
  3. * SPDX-FileCopyrightText: 2017-2024 Nextcloud GmbH and Nextcloud contributors
  4. * SPDX-FileCopyrightText: 2016 ownCloud, Inc.
  5. * SPDX-License-Identifier: AGPL-3.0-only
  6. */
  7. namespace OCA\User_LDAP;
  8. /**
  9. * @brief wraps around static Nextcloud core methods
  10. */
  11. class FilesystemHelper {
  12. /**
  13. * @brief states whether the filesystem was loaded
  14. * @return bool
  15. */
  16. public function isLoaded() {
  17. return \OC\Files\Filesystem::$loaded;
  18. }
  19. /**
  20. * @brief initializes the filesystem for the given user
  21. * @param string $uid the Nextcloud username of the user
  22. */
  23. public function setup($uid) {
  24. \OC_Util::setupFS($uid);
  25. }
  26. }