13
Views
1
Comments
Solved
[Azure Blob Storage] Create folder inside the container
azure-blob-storage
Web icon
Forge asset by Barduino
Application Type
Traditional Web

Any way to do that?

2020-09-21 08-42-47
Vincent Koning
Solution

No. Not in the way you probably expect (like a disc folder).

Folders in a Blob storage are virtual and "created" when the blob is placed. 

Lets say you want to put a file called "intake.docx" in a folder "project x" inside the Azure Storage Container. Simply name your file "project x/intake.docx" and you have created a virtual folder that contains that file. 

So you can have "folders" of which you can query the contents (Get all files starting with <folder name>) but you can not have empty folders. Doesn't really matter for the SDK since the Get all we just used will result zero files and that is exactly what you should expect even when you have an empty folder.

Hope this clears things up a bit.

Greetings,

Vincent


ps: I found a nice blog that seems to go a bit deeper into this. I didn't read it fully though: https://fsou1.github.io/Nested_folders_with_azure_blob_storage

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.