Your workflow is unique 👨💻 - tell us how you use Dropbox here.
Forum Discussion
odoremieux
9 years agoNew member | Level 2
2/files/list_folder not consistent with results in path_display
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
- Greg-DB9 years ago
Dropbox Community Moderator
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.
About Dropbox API Support and Feedback
Get help with the Dropbox API from fellow developers and experts.
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!