Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorCôme Chilliet <come.chilliet@nextcloud.com>2022-09-13 13:10:28 +0300
committerCôme Chilliet <come.chilliet@nextcloud.com>2022-09-13 13:10:28 +0300
commit441ac433b1da0baa9dd52ab5b236209befe4eb29 (patch)
treef74e820946be7bf0a9d1ea7d3fa9f8895933512a /lib
parentdacd18158d4d47ea9c279b4707439ddbbb88f7cc (diff)
Add a nodeFilter parameter for IExportDestination::copyFolderfeat/add-nodeFilter-to-user_migration
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/public/UserMigration/IExportDestination.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/public/UserMigration/IExportDestination.php b/lib/public/UserMigration/IExportDestination.php
index 65d228faeb9..5cd313843cc 100644
--- a/lib/public/UserMigration/IExportDestination.php
+++ b/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.