I am trying to list shared links using the below code and it works.
But I don't need ALL of the sharedLinks. This list is huge.
How can I specify a path like this listSharedLinks(String path) ? I want to list shared links only for this path.
List<SharedLinkMetadata> sharedLinkMetadataList =
client
.asMember(memberId)
.withPathRoot(PathRoot.namespaceId(rootNS))
.sharing()
.listSharedLinks()
.getLinks();
The Java SDK docs says - But I see no overloaded methods where I can provide a non-empty path.
If no path is given, returns a list of all shared links for the current user.
If a non-empty path is given, returns a list of all shared links that allow access to the given path - direct links to the given path and links to parent folders of the given path. Links to parent folders can be suppressed by setting direct_only to true.
Please Help 🙏 Thanks a lot.