cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Want to know what we learned at IBC? Check out our learnings on media, remote working and more right here.

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: 

Path to file and folder in shared folder Vs regular or shared folder of user

Path to file and folder in shared folder Vs regular or shared folder of user

omrika
Explorer | Level 3

hello,

i am trying to retrive all the Hierarchy of a dropbox user.

up to now we had the user folder and under we had folders and shared folders.

now we have the new behaviour in dropbox "shared folder" that are out of the user main folder

i succsedded to get all the shared folders and usgin the namespace(sharedFolderId) i succsedded to get the second level of a folder .

but after that the response of the folder is becoming as regular folders- and when trying to retrive the next level using the path (without the namespace) i am getting an error.

why the shared folder does not returning the pathLower and PAth display from the sdk or the api??

var client = client.AsMember(request.AsMember).WithPathRoot(new PathRoot.NamespaceId(folderId));
var path= $"ns:{current.First().SharedFolderId}";
var sFolders =await client.Files.ListFolderAsync(path);

1 Reply 1

Greg-DB
Dropbox Staff

It sounds like you're referring to the new "team space" configuration, where member folders are mounted underneath the team space (instead of the old way of having team folders mounted underneath member folders). Shared folders can be mounted under either the team space or member folders.

You can find more information on this, including how to access different spaces via the API in the Namespace Guide.

I see you've already found and used some of this functionality via the WithPathRoot method in the .NET SDK. 

As for the issue you're running in to, can you share the unexpected error you're getting? I'll be happy to take a look and see what the issue might be.

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropbox Staff
What do Dropbox user levels mean?