Skip to content

Commit

Permalink
Merge pull request #34048 from nextcloud/feat/add-nodeFilter-to-user_…
Browse files Browse the repository at this point in the history
…migration

Add a nodeFilter parameter for IExportDestination::copyFolder
  • Loading branch information
PVince81 committed Sep 15, 2022
2 parents 02d55eb + 441ac43 commit ca747b9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/public/UserMigration/IExportDestination.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,12 @@ public function addFileAsStream(string $path, $stream): void;
*
* @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.
Expand Down

0 comments on commit ca747b9

Please sign in to comment.