Add a nodeFilter parameter for IExportDestination::copyFolder

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
pull/34048/head
Côme Chilliet 3 years ago
parent dacd18158d
commit 441ac433b1
No known key found for this signature in database
GPG Key ID: A3E2F658B28C760A
  1. 3
      lib/public/UserMigration/IExportDestination.php

@ -60,11 +60,12 @@ interface IExportDestination {
*
* @param Folder $folder folder to copy to the export archive.
* @param string $destinationPath Full path to the folder in the export archive. Parent directories will be created if needed.
* @param ?callable(\OCP\Files\Node):bool $nodeFilter Callback to filter nodes to copy
* @throws UserMigrationException
*
* @since 24.0.0
*/
public function copyFolder(Folder $folder, string $destinationPath): void;
public function copyFolder(Folder $folder, string $destinationPath, ?callable $nodeFilter = null): void;
/**
* @param array<string,int> $versions Migrators and their versions.

Loading…
Cancel
Save