summaryrefslogtreecommitdiffstats
path: root/lib/public
diff options
context:
space:
mode:
authorCôme Chilliet <come.chilliet@nextcloud.com>2022-04-28 11:23:26 +0200
committerCôme Chilliet (Rebase PR Action) <come-nc@users.noreply.github.com>2022-05-30 07:36:13 +0000
commitf20b7e576484d9d7654763e60707115d93655df9 (patch)
treec54903d672cb96611e693cb305cfe1fbddb28185 /lib/public
parent72bb8f6c3155e63bc86637e3beacf21bc807bb1c (diff)
downloadnextcloud-server-f20b7e576484d9d7654763e60707115d93655df9.tar.gz
nextcloud-server-f20b7e576484d9d7654763e60707115d93655df9.zip
Add a method to get estimated export size in IMigrator
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'lib/public')
-rw-r--r--lib/public/UserMigration/IMigrator.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/public/UserMigration/IMigrator.php b/lib/public/UserMigration/IMigrator.php
index d02e5df0683..b7ad382bef2 100644
--- a/lib/public/UserMigration/IMigrator.php
+++ b/lib/public/UserMigration/IMigrator.php
@@ -88,6 +88,14 @@ interface IMigrator {
public function getVersion(): int;
/**
+ * Returns an estimate of the exported data size in KiB.
+ * Should be fast, favor performance over accuracy.
+ *
+ * @since 24.0.0
+ */
+ public function getExportEstimatedSize(): int;
+
+ /**
* Checks whether it is able to import a version of the export format for this migrator
* Use $importSource->getMigratorVersion($this->getId()) to get the version from the archive
*