summaryrefslogtreecommitdiffstats
path: root/lib/public/Files/Config
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2017-06-12 15:24:55 +0200
committerRobin Appelman <robin@icewind.nl>2017-06-15 14:06:54 +0200
commit2e8e6f95b99151edc0b236e474b32f1760af006a (patch)
tree6229a1a35f1fdbc93b11520dece04b5997d92da8 /lib/public/Files/Config
parenta74901fce17da6d88dbb82373fff523b834d692d (diff)
downloadnextcloud-server-2e8e6f95b99151edc0b236e474b32f1760af006a.tar.gz
nextcloud-server-2e8e6f95b99151edc0b236e474b32f1760af006a.zip
show used space in user list
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib/public/Files/Config')
-rw-r--r--lib/public/Files/Config/IUserMountCache.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/public/Files/Config/IUserMountCache.php b/lib/public/Files/Config/IUserMountCache.php
index cf30d8fb431..e1db1cbf98b 100644
--- a/lib/public/Files/Config/IUserMountCache.php
+++ b/lib/public/Files/Config/IUserMountCache.php
@@ -104,4 +104,15 @@ interface IUserMountCache {
* @since 9.0.0
*/
public function remoteStorageMounts($storageId);
+
+ /**
+ * Get the used space for users
+ *
+ * Note that this only includes the space in their home directory,
+ * not any incoming shares or external storages.
+ *
+ * @param IUser[] $users
+ * @return int[] [$userId => $userSpace]
+ */
+ public function getUsedSpaceForUsers(array $users);
}