Skip to content

Commit

Permalink
Add a nodeFilter parameter for IExportDestination::copyFolder
Browse files Browse the repository at this point in the history
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
  • Loading branch information
come-nc committed Sep 13, 2022
1 parent dacd181 commit 441ac43
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 441ac43

Please sign in to comment.