You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.

Forum Discussion

jerry14's avatar
jerry14
Explorer | Level 4
3 years ago

list_folder / get_file_metadata not returning path_lower

Hi,   I am trying the list_folder & get_file_metadata APIs, but both of them doesn't seem to be returning path_lower/path information in FileMetadata. The value is null. I tried from my java code...
  • Greg-DB's avatar
    Greg-DB
    3 years ago

    In this case, this would be because you're using asAdmin as to administratively access team content on behalf of an admin, who may not necessarily have that content mounted in their account.

     

    To get the path values, you'll need to make the call in a context where the content is mounted, such as by doing any of the following, as applicable/desired:

    • use withPathRoot to set the root for the call to somewhere where the content is mounted (e.g., a team space, or a member folder)
    • switch to using asMember instead of asAdmin, if the admin does have the content mounted in their account
    • switch to using asMember instead of asAdmin and instead specify the member ID for a member that does have the content mounted in their account

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

5,910 PostsLatest Activity: 3 days ago
333 Following

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!