Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Extend ImportSource interface to list files of a folder
Signed-off-by: Christopher Ng <[email protected]>
  • Loading branch information
Pytal committed Feb 24, 2022
commit 321e1cdce375933121a2a4ddb9afe86c6b8c3c9d
10 changes: 10 additions & 0 deletions lib/public/UserMigration/IImportSource.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*
Expand Down