Files
2026-10-08 09:59:14 +02:00

28 lines
607 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 36.0.0
*/
#[Consumable(since: '36.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, relative: float}
* @since 36.0.0
*/
public function getUserQuota(bool $useCache = true): array;
}