One month down in 2025: How are your resolutions coming along? Check out how to get back on track here.
Forum Discussion
Lakshmi Narayana
5 years agoExplorer | Level 3
Re: ObjC 3.3.5 new(ish) parameters for listFolder method
If recursive is not supported by shared links, how can we use recursive.
This is the error I'm getting:
Error in call to API function "files/list_folder": Recursive list folder is not supported for shared link.
Note: I'm new to this, so please keep the answer beginner-friendly.
- Greg-DB
Dropbox Staff
If you're using listFolder to list the contents of a shared link that refers to a folder, you'll need to use recursive:NO, since the recursive mode isn't supported when listing the contents of a shared link that refers to a folder.
If you need to list the contents of a subfolder inside the folder for the shared link, you need to then call listFolder again, specifying the same shared link in the sharedLink parameter, but also specifying the relative path of the desired subfolder as the path parameter (the first parameter).
You can build the relative path based on the "name" property of the relevant subfolder in the results from the first call. For example, if the results of the first call shows you that there's a subfolder named "Receipts", then you would pass in a path value of "/Receipts" to list that subfolder when you call listFolder again.
- Lakshmi NarayanaExplorer | Level 3I understand that I can just call the files_list_folder() and pass '/entries_loop_variable.name' as path while looping through the files_list_folder_object.entries, to include the subfolders and files inside the list of files. Is that right?
- Lakshmi NarayanaExplorer | Level 3
I haven't tested it completely, but It appears to be working. Thanks for helping.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.5,941 PostsLatest Activity: 8 hours ago
If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X or Facebook.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!