Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
Lakshmi Narayana
6 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.
3 Replies
- Greg-DB6 years ago
Dropbox Community Moderator
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 Narayana6 years agoExplorer | 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 Narayana6 years agoExplorer | 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.
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
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, Facebook or Instagram.
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!