Your workflow is unique 👨‍💻 -  tell us how you use Dropbox here.

Forum Discussion

tamtran's avatar
tamtran
New member | Level 2
4 years ago

Duplicate folder name created via API

Hi,

 

We are using Dropbox API (C# library) to create folder structure. Here is API we use:

await dropboxClient.Files.CreateFolderV2Async(folderPath);

 

Somehow it created same folder name like the screenshot below, is there anyway to prevent duplicate folder name and also do not create folder it it exists?

 

 

 

1 Reply

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    4 years ago

    It shouldn't be possible to create a folder with the exact same path of an existing folder. I just tested that behavior and confirmed that the API is returning a 'path/conflict/folder' error in that case for me.

     

    Can you check if you have any unprintable/invisible characters in one of those paths? (For example, the Unicode "zero width space", etc.)

     

    Alternatively, perhaps it was a display or caching issue with the Dropbox web site. If you refresh the site, do you still see a duplicate?

About Discuss Dropbox Developer and API

Node avatar for Discuss Dropbox Developer and API
Explore Dropbox Developer & API discussions with developers like you.

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!