2014-03-27 13:01:14 -04:00
|
|
|
<?php
|
2024-05-29 05:32:54 -04:00
|
|
|
|
2014-03-27 13:01:14 -04:00
|
|
|
/**
|
2024-05-29 05:32:54 -04:00
|
|
|
* SPDX-FileCopyrightText: 2017-2024 Nextcloud GmbH and Nextcloud contributors
|
|
|
|
|
* SPDX-FileCopyrightText: 2016 ownCloud, Inc.
|
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
2014-03-27 13:01:14 -04:00
|
|
|
*/
|
2016-05-12 10:31:35 -04:00
|
|
|
namespace OCA\User_LDAP;
|
2014-03-27 13:01:14 -04:00
|
|
|
|
|
|
|
|
/**
|
2017-04-12 00:16:27 -04:00
|
|
|
* @brief wraps around static Nextcloud core methods
|
2014-03-27 13:01:14 -04:00
|
|
|
*/
|
|
|
|
|
class FilesystemHelper {
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @brief states whether the filesystem was loaded
|
|
|
|
|
* @return bool
|
|
|
|
|
*/
|
|
|
|
|
public function isLoaded() {
|
|
|
|
|
return \OC\Files\Filesystem::$loaded;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @brief initializes the filesystem for the given user
|
2017-04-12 00:16:27 -04:00
|
|
|
* @param string $uid the Nextcloud username of the user
|
2014-03-27 13:01:14 -04:00
|
|
|
*/
|
|
|
|
|
public function setup($uid) {
|
|
|
|
|
\OC_Util::setupFS($uid);
|
|
|
|
|
}
|
2014-04-24 07:32:50 -04:00
|
|
|
}
|