cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Want to know what we learned at IBC? Check out our learnings on media, remote working and more right here.

Discuss Dropbox Developer & API

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Duplicate folder name created via API

Duplicate folder name created via API

tamtran
New member | Level 2

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?

 

chrome_2021-12-15_15-18-48.jpg

 

 

1 Reply 1

Greg-DB
Dropbox Staff

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?

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropbox Staff
What do Dropbox user levels mean?