diff options
author | Christopher Ng <chrng8@gmail.com> | 2022-02-23 05:43:29 +0000 |
---|---|---|
committer | Christopher Ng <chrng8@gmail.com> | 2022-02-24 16:53:50 +0000 |
commit | 321e1cdce375933121a2a4ddb9afe86c6b8c3c9d (patch) | |
tree | e9382e6a6849c88db1a897cf7240edaa4d481ac3 /lib/public/UserMigration | |
parent | 6da8a6d62adde9b1ed011a7a18d43984cf5a27a8 (diff) | |
download | nextcloud-server-321e1cdce375933121a2a4ddb9afe86c6b8c3c9d.tar.gz nextcloud-server-321e1cdce375933121a2a4ddb9afe86c6b8c3c9d.zip |
Extend ImportSource interface to list files of a folder
Signed-off-by: Christopher Ng <chrng8@gmail.com>
Diffstat (limited to 'lib/public/UserMigration')
-rw-r--r-- | lib/public/UserMigration/IImportSource.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/public/UserMigration/IImportSource.php b/lib/public/UserMigration/IImportSource.php index f3051b097e0..df91c0e71ab 100644 --- a/lib/public/UserMigration/IImportSource.php +++ b/lib/public/UserMigration/IImportSource.php @@ -54,6 +54,16 @@ interface IImportSource { 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 * * Folder $destination folder to copy into |