Skip to content

Commit 6938267

Browse files
committed
Extend ImportSource interface to list files of a folder
Signed-off-by: Christopher Ng <chrng8@gmail.com>
1 parent 98fd66b commit 6938267

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

lib/public/UserMigration/IImportSource.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,16 @@ public function getFileContents(string $path): string;
5353
*/
5454
public function getFileAsStream(string $path);
5555

56+
/**
57+
* List the files of a folder
58+
*
59+
* @param string $path Full path to the folder in the export archive.
60+
* @return array The list of files.
61+
*
62+
* @since 24.0.0
63+
*/
64+
public function getFolderListing(string $path): array;
65+
5666
/**
5767
* Copy files from the export to a Folder
5868
*

0 commit comments

Comments
 (0)