You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/main/java/org/aarboard/nextcloud/api/NextcloudConnector.java
+39-14Lines changed: 39 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -535,12 +535,37 @@ public CompletableFuture<GroupsXMLAnswer> getGroupsAsync(String search, int limi
535
535
*
536
536
* @param path path of the folder
537
537
* @return found subfolders
538
+
* @deprecated The methods naming is somehow misleading, as it lists all resources (subfolders and files) within the given {@code rootPath}. Please use {@link #listFolderContent(String)} instead.
538
539
*/
540
+
@Deprecated
539
541
publicList<String> getFolders(Stringpath)
540
542
{
541
543
returnfd.getFolders(path);
542
544
}
543
545
546
+
/**
547
+
* Get all subfolders of the specified path
548
+
*
549
+
* @param path path of the folder
550
+
* @return found subfolders
551
+
*/
552
+
publicList<String> listFolderContent(Stringpath)
553
+
{
554
+
returnfd.listFolderContent(path);
555
+
}
556
+
557
+
/**
558
+
* List all file names and subfolders of the specified path traversing into subfolders to the given depth.
559
+
*
560
+
* @param path path of the folder
561
+
* @param depth depth of recursion while listing folder contents
@@ -45,17 +46,43 @@ public Folders(ServerConfig _serverConfig) {
45
46
*
46
47
* @param rootPath path of the folder
47
48
* @return found subfolders
49
+
*
50
+
* @deprecated The methods naming is somehow misleading, as it lists all resources (subfolders and files) within the given {@code rootPath}. Please use {@link #listFolderContent(String)} instead.
0 commit comments