cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
We've been busy working on some major updates to the Community, so check out what's changing, what’s staying the same and what you can expect from the Dropbox Community 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: 

2/files/list_folder not consistent with results in path_display

2/files/list_folder not consistent with results in path_display

odoremieux
New member | Level 2

When using the API list_folder (event with the API explorer), the results in path_display are not consistent.

For example if I start with /CLIENTS

I 'm getting a bunch of results and the results have all the rigth format for path_display

/CLIENTS/Client1

/CLIENTS/Client2

/CLIENTS/Client3

....

 

But if I start with /CLIENTS/Client2, I'm also getting a bunch of results, but everything in path_display is in lower case now

/clients/client1/file1.txt

/clients/client1/file2txt

/clients/client1/file3.txt

....

 

It doesn't matter the folder, it's happening each time you are going 2 levels down.

 

Is there some way to go around that?

 

1 Reply 1

Greg-DB
Dropbox Staff
Unfortunately due to some specifics of how Dropbox is implemented, not all of the path components can be guaranteed to have the expected casing.

You can find more information on this in the "Path formats" section under:

https://www.dropbox.com/developers/documentation/http/documentation#formats

There's also some information in the documentation for "path_display" if you expand "FileMetadata, e.g., under:

https://www.dropbox.com/developers/documentation/http/documentation#files-get_metadata

FileMetadata.name will contain the case-preserved name, so the workaround would be to build the path up from that.
Need more support?
Who's talking

Top contributors to this post

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