mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
Add a method to get estimated export size in IMigrator
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
This commit is contained in:
parent
01eda634c6
commit
c16b72f588
1 changed files with 8 additions and 0 deletions
|
|
@ -87,6 +87,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
|
||||
|
|
|
|||
Loading…
Reference in a new issue