aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public/IUser.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/public/IUser.php')
-rw-r--r--lib/public/IUser.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/public/IUser.php b/lib/public/IUser.php
index 52f79083dc1..945e7e1602a 100644
--- a/lib/public/IUser.php
+++ b/lib/public/IUser.php
@@ -281,6 +281,15 @@ interface IUser {
public function getQuota();
/**
+ * Get the users' quota in machine readable form. If a specific quota is set
+ * for the user, then the quota is returned in bytes. Otherwise the default value is returned.
+ * If a default setting was not set, it is return as `\OCP\Files\FileInfo::SPACE_UNLIMITED`, i.e. quota is not limited.
+ *
+ * @since 32.0.0
+ */
+ public function getQuotaBytes(): int|float;
+
+ /**
* set the users' quota
*
* @param string $quota