Your workflow is unique 👨💻 - tell us how you use Dropbox here.
Forum Discussion
Richard T. S.
10 years agoNew member | Level 2
Dropbox .NET CreateFolderAsync fails for Top level folder.
The code is simple:
The mClient is logged in to access my APP folder.
public async Task<FolderMetadata> CreateFolder(String DBPath) {
return await mClient.Files.CreateFolderAsync(DBPath);
}
1) A DBPath = "New Folder" fails
2) a DBPath = "/Status/New Folder" works
Now with more testing ... I find the "/New Folder" works.
When working with the Swift API I was told to DROP the leading "/" for API V2 for top LEVEL objects.
WHATS THE TRUTH ???
1 Reply
Replies have been turned off for this discussion
- Greg-DB10 years ago
Dropbox Community Moderator
Only the root path itself should omit the "/", that is, you represent root by the empty string: ".
Any non-root path should include the "/", that is, these are valid paths: "/Status/New Folder" and "/New Folder", but "New Folder" isn't.
About Dropbox API Support and Feedback
Get help with the Dropbox API from fellow developers and experts.
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!