Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
brettb__
5 years agoNew member | Level 2
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
1 Reply
- Greg-DB5 years ago
Dropbox Community Moderator
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.namewill contain the correct case.Metadata.path_displayusually 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 theMetadata.nameor last path component of each relevantMetadata.path_displayentry.(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
Find help with the Dropbox API from other developers.
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!