1
0

FilesystemHelper.php 653 B

1234567891011121314151617181920212223242526272829303132
  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. use OC\Files\Filesystem;
  9. /**
  10. * @brief wraps around static Nextcloud core methods
  11. */
  12. class FilesystemHelper {
  13. /**
  14. * @brief states whether the filesystem was loaded
  15. * @return bool
  16. */
  17. public function isLoaded() {
  18. return Filesystem::$loaded;
  19. }
  20. /**
  21. * @brief initializes the filesystem for the given user
  22. * @param string $uid the Nextcloud username of the user
  23. */
  24. public function setup($uid) {
  25. \OC_Util::setupFS($uid);
  26. }
  27. }