Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCôme Chilliet <come.chilliet@nextcloud.com>2022-03-10 13:38:46 +0300
committerCôme Chilliet <come.chilliet@nextcloud.com>2022-03-14 16:34:14 +0300
commit5534f70c5ddfd83cef78cb95d5b66ae078b472b6 (patch)
tree05c0be6acc733a2cf4aa71a1324576e2983a3417 /lib/public
parentd8b2d32a5e3ddec7842f4e1007ff3233488f1f8a (diff)
Add pathExists method to IImportSource to test if a path exists in the archive
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'lib/public')
-rw-r--r--lib/public/UserMigration/IImportSource.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/public/UserMigration/IImportSource.php b/lib/public/UserMigration/IImportSource.php
index df91c0e71ab..17ad4c9f12f 100644
--- a/lib/public/UserMigration/IImportSource.php
+++ b/lib/public/UserMigration/IImportSource.php
@@ -64,6 +64,13 @@ interface IImportSource {
public function getFolderListing(string $path): array;
/**
+ * Test if a path exists
+ *
+ * @since 24.0.0
+ */
+ public function pathExists(string $path): bool;
+
+ /**
* Copy files from the export to a Folder
*
* Folder $destination folder to copy into