cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Tell us what you want to see on the Community here!
Close

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Re: ObjC 3.3.5 new(ish) parameters for listFolder method

Highlighted

Re: ObjC 3.3.5 new(ish) parameters for listFolder method

Explorer | Level 3

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 3
Highlighted

Re: ObjC 3.3.5 new(ish) parameters for listFolder method

Dropboxer

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.

Highlighted

Re: ObjC 3.3.5 new(ish) parameters for listFolder method

Explorer | Level 3
I 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?
Highlighted

Re: ObjC 3.3.5 new(ish) parameters for listFolder method

Explorer | Level 3

I haven't tested it completely, but It appears to be working. Thanks for helping.

Work Smarter with Dropbox

The way we work is changing. Share and discover new ways to work smarter with Dropbox in our community.

Sound good? Let's get started.
Who's talking

Top contributors to this post

What do Dropbox user levels mean?
Need more support?