Skip to main content
Question

Folder content: must names be unique?

  • May 21, 2025
  • 2 replies
  • 1 view

Forum|alt.badge.img

I'm planning on using the Python SDK to do simple things like upload and download files.  It seems like the right way to get to a particular folder is by walking along the path.

 

When i get the contents of a folder, may I assume that the names of the items contained are unique?  E.g. would it be possible for a file and a folder to have the same name?

2 replies

Forum|alt.badge.img

Hello ,

 

yes, the names are unique identifiers.

 

If you try to create a folder with the same name an error will be returned.

In the case of a document it will generate a new version of it.

You can not have a folder and a file with the same name. That is quite an improbable situation but... I have created a folder named test.docx and when I tried to upload a word document called test and with that extension is failing.

 

Thanks


Forum|alt.badge.img

,

 

Thanks for the excellent, detailed reply!

 

I only asked about folder and file to indicate that the question was intended to cover all edge cases.

 

Cheers