aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Files/ObjectStore/S3.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/Files/ObjectStore/S3.php')
-rw-r--r--lib/private/Files/ObjectStore/S3.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/private/Files/ObjectStore/S3.php b/lib/private/Files/ObjectStore/S3.php
index b1cd89388ae..d4e207f9002 100644
--- a/lib/private/Files/ObjectStore/S3.php
+++ b/lib/private/Files/ObjectStore/S3.php
@@ -25,6 +25,7 @@ namespace OC\Files\ObjectStore;
use Aws\Result;
use Exception;
+use OCP\Files\FileInfo;
use OCP\Files\ObjectStore\IObjectStore;
use OCP\Files\ObjectStore\IObjectStoreMultiPartUpload;
@@ -110,4 +111,16 @@ class S3 implements IObjectStore, IObjectStoreMultiPartUpload {
'UploadId' => $uploadId
]);
}
+
+ public function bytesUsed(): int {
+ // The only way to get the bytes used is by listing every object
+ // in the bucket and sum their size
+ return FileInfo::SPACE_UNKNOWN;
+ }
+
+ public function bytesQuota(): int {
+ // The quota is not obtainable through the S3 API, only through the
+ // specific Amazon Service Quotas API
+ return FileInfo::SPACE_UNLIMITED;
+ }
}