The FileMetadata type has the property path_lower... but I want the original mixed-case path. Is there any way to get it with the v2 API?
1 Answer
Update: @Greg wrote in a comment below:
the FileMetadata object now contains a "path_display" property
so the below is now obsolete.
As revealed by @Greg in the corresponding thread in the Dropbox Community site, this is technically possible but only indirectly and inefficiently:
FileMetadata.namewill contain the case-preserved name, so you would need to build the path up from that.
In other words, walk back up the directory hierarchy in the path, making a HTTP request for each parent directory, in order to get its mixed-case name, and then reassemble the full mixed-case path from all of those names.
While this is feasible, it’s not what I was after — I was hoping there might be some (possibly undocumented) way to request that the full mixed-case path be provided as a field in FileMetadata values, without making additional requests — or perhaps by making max 1 additional request.
Oh well. Greg did write:
I’ll send this along as a feature request to the team though.
So my fingers are crossed.
-
1Quick update, the FileMetadata object now contains a "path_display" property. You can read more about it in the documentation.– GregCommented Feb 25, 2016 at 18:43