Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Add a method to get estimated export size in IMigrator
Signed-off-by: Côme Chilliet <[email protected]>
  • Loading branch information
come-nc authored and backportbot-nextcloud[bot] committed May 31, 2022
commit c16b72f588ffeae0ac58e646d0574b9121bfe0dc
8 changes: 8 additions & 0 deletions lib/public/UserMigration/IMigrator.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,14 @@ public function getDescription(): string;
*/
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
Expand Down