From 441ac433b1da0baa9dd52ab5b236209befe4eb29 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=B4me=20Chilliet?= Date: Tue, 13 Sep 2022 12:10:28 +0200 Subject: Add a nodeFilter parameter for IExportDestination::copyFolder MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Côme Chilliet --- lib/public/UserMigration/IExportDestination.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib') 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 $versions Migrators and their versions. -- cgit v1.2.3