Learn how to make the most out of the Dropbox Community here 💙!
Forum Discussion
Pierluigi2019
6 years agoHelpful | Level 6
Problem with copy folder api in c#
I have created a team folder structure with subfolder levels and I create these folders with the dropbox api. Structure
Folder Level 1: Companies Folder Level 2: Customers Folder level 3: Pro...
Pierluigi2019
6 years agoHelpful | Level 6
All my folders are shared folders.
The problem is:
when I use this line of code
await dropbox.Files.CopyV2Async(originFolder, destinationFolder, true, true, true)
I expect that the destination folder (if not exists) will be created like "shared folder" and then I should add the users, but it isn't.
It happens exactly like you described.
"sharing properties from the shared parent folder, and FolderSharingInfo.ParentSharedFolderId would be set to the shared folder ID of the shared parent folder."
My question is how I should copy a folder where the "destination folder" will be like a new shared one with only me like user?
Greg-DB
Dropbox Staff
6 years agoI see, thanks for clarifying.
When you make a copy of a folder, such as by using CopyV2Async, you're only making a distinct copy of the folder and its contents; it does not copy over the sharing properties of the original.
The resulting copy of the folder will inherit the sharing properties of its shared parent, if any. Or, if you want to share the copy itself, you will then need to call ShareFolderAsync to share the new copy, and AddFolderMemberAsync to add members, as desired.
- Pierluigi20196 years agoHelpful | Level 6
I did like you described and everything works.
Thanks for your help.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.5,972 PostsLatest Activity: 39 minutes ago
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!