diff options
author | Vincent Petry <vincent@nextcloud.com> | 2022-09-15 17:26:02 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-15 17:26:02 +0200 |
commit | ca747b91d4aa907b191119f080d213bfb5e60fd2 (patch) | |
tree | 880623e4b9038cb097392ff6f5620263e4b4525e /lib/public | |
parent | 02d55eb90fdc61137745c5e5b3d8c7330e0717c2 (diff) | |
parent | 441ac433b1da0baa9dd52ab5b236209befe4eb29 (diff) | |
download | nextcloud-server-ca747b91d4aa907b191119f080d213bfb5e60fd2.tar.gz nextcloud-server-ca747b91d4aa907b191119f080d213bfb5e60fd2.zip |
Merge pull request #34048 from nextcloud/feat/add-nodeFilter-to-user_migration
Add a nodeFilter parameter for IExportDestination::copyFolder
Diffstat (limited to 'lib/public')
-rw-r--r-- | lib/public/UserMigration/IExportDestination.php | 3 |
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. |