Files
nextcloud-server-mirror/lib/public/Files/IUserFolder.php
Ferdinand Thiessen a249d7a0b2 feat(IUserFolder): add a user folder class
* Implements https://github.com/nextcloud/server/issues/52896

Similar to the root folder this represents the users home folder,
it allows to group user based methods on the folder like the user quota.

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2026-02-26 11:35:02 +01:00

28 lines
590 B
PHP

<?php
declare(strict_types=1);
/**
* SPDX-FileCopyrightText: 2025 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
namespace OCP\Files;
use OCP\AppFramework\Attribute\Consumable;
/**
* @since 33.0.0
*/
#[Consumable(since: '33.0.0')]
interface IUserFolder extends Folder {
/**
* @param bool $useCache - Use the cached value if available instead of recalculate.
* @return array{used: int|float, free: int|float, total: int|float, quota: int|float}
* @since 33.0.0
*/
public function getUserQuota(bool $useCache = true): array;
}