1

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

1 Answer 1

1

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.name will 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.

1
  • 1
    Quick update, the FileMetadata object now contains a "path_display" property. You can read more about it in the documentation.
    – Greg
    Commented Feb 25, 2016 at 18:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.