diff options
author | Côme Chilliet <come.chilliet@nextcloud.com> | 2022-04-28 11:23:26 +0200 |
---|---|---|
committer | backportbot-nextcloud[bot] <backportbot-nextcloud[bot]@users.noreply.github.com> | 2022-05-31 00:19:13 +0000 |
commit | c16b72f588ffeae0ac58e646d0574b9121bfe0dc (patch) | |
tree | 301a6cbc645a44cc7cf81521009bd6bde3ecfa10 | |
parent | 01eda634c647a8e0e2f2bab304f40d17605bc071 (diff) | |
download | nextcloud-server-c16b72f588ffeae0ac58e646d0574b9121bfe0dc.tar.gz nextcloud-server-c16b72f588ffeae0ac58e646d0574b9121bfe0dc.zip |
Add a method to get estimated export size in IMigrator
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
-rw-r--r-- | lib/public/UserMigration/IMigrator.php | 8 |
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 * |