Forum Discussion

6EHPS2's avatar
6EHPS2
Explorer | Level 3
6 years ago

Typo in "Obsolete" attribute

The method declarations of both CreateFolderAsync(CreateFolderArg) and CreateFolderAsync(String, Boolean) are marked as obsolete:

[Obsolete("This function is deprecated, please use CreateFolderAsync instead.")]
public Task<FolderMetadata> CreateFolderAsync(CreateFolderArg createFolderArg);
[Obsolete("This function is deprecated, please use CreateFolderAsync instead.")]
public Task<FolderMetadata> CreateFolderAsync(string path, bool autorename = false);

However, these messages do not make sense. Obviously, both messages should instead refer to the CreateFolderV2Async method.

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

    Thanks for the report, and apologies for the confusion! You're correct, these messages should refer to the newer version of the method like you said. I'll ask the team to fix that up.

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.5,946 PostsLatest Activity: 55 minutes ago
351 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!