We're making changes to the Community, so you may have received some notifications - thanks for your patience and welcome back. Learn more here.

Forum Discussion

le h.'s avatar
le h.
New member | Level 1
9 years ago

How to create a new folder on dropbox SDK C#?

I have a textbox, it be using for input name of folder. and a button's name create.

public async void CreateANewFolder(string token,string path)
{
using (var dbx = new DropboxClient(token))
{
var created = await dbx.Files.CreateFolderAsync(path);
//var endCreated = await dbx.Files.EndCreateFolder();
}
}

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

    Yes, you can use CreateFolderAsync to create a folder using the .NET SDK, as you have in your code.

    If that's not working for you, please check and share the error or output you get.