From 321e1cdce375933121a2a4ddb9afe86c6b8c3c9d Mon Sep 17 00:00:00 2001 From: Christopher Ng Date: Wed, 23 Feb 2022 05:43:29 +0000 Subject: [PATCH] Extend ImportSource interface to list files of a folder Signed-off-by: Christopher Ng --- lib/public/UserMigration/IImportSource.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lib/public/UserMigration/IImportSource.php b/lib/public/UserMigration/IImportSource.php index f3051b097e072..df91c0e71abd1 100644 --- a/lib/public/UserMigration/IImportSource.php +++ b/lib/public/UserMigration/IImportSource.php @@ -53,6 +53,16 @@ public function getFileContents(string $path): string; */ public function getFileAsStream(string $path); + /** + * List the files of a folder + * + * @param string $path Full path to the folder in the export archive. + * @return array The list of files. + * + * @since 24.0.0 + */ + public function getFolderListing(string $path): array; + /** * Copy files from the export to a Folder *