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

brettb__'s avatar
brettb__
New member | Level 2
5 years ago

Sharing folder changes folder to lowercase

I have python script, which in part shares folders. Sometimes (not always) the casing of the folder gets changed. The API move_v2 doesn't allow renaming by case only, so am I just stuck with automatically renamed folders? Is there any way to prevent this behavior in the future?

 

Sharing:   /root/SHARE TARGET

 

Changes to:   /root/share target

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Staff rankDropbox Staff

    Thanks for the post. Unfortunately, that behavior is expected sometimes, and there isn't a way to just prevent it. The original casing isn't always available for all components. There's a note about this in the API v2 documentation, under "Case insensitivity":

    Also, while Dropbox is case-insensitive, it makes efforts to be case-preserving. Metadata.name will contain the correct case. Metadata.path_display usually will contain the correct case, but sometimes only in the last path component. If your app needs the correct case for all path components, it can get it from the Metadata.name or last path component of each relevant Metadata.path_display entry.

    (That's referring to the Metadata objects in particular, but it applies anywhere file metadata, e.g., paths, are used.)

    We understand this is non-ideal of course, and I'll forward this on to the team as feedback, but I can't make any promises as to if or when this might be improved in the future.

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.5,919 PostsLatest Activity: 17 hours ago
334 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!