views:

220

answers:

2

How to create a sub directory in a blob container

for example,

in my blob container http://veda.blob.core.windows.net/document/

If I store some files it will be

http://veda.blob.core.windows.net/document/1.txt

http://veda.blob.core.windows.net/document/2.txt

Now, how to create a sub directory

http://veda.blob.core.windows.net/document/folder/

So that I can store files

http://veda.blob.core.windows.net/document/folder/1.txt

A: 

There is actually only a single layer of containers ..... you can virtually created "file-system" like layered storage, but in reality everything will be in 1 layer; the container in which it is. for creating that virtual file-system like storage, you can have blob names can contain '/' so you can do what like with the way you store. the great thing is that you can search for a blob at a virtual level, by giving a partial string, upto a '/'. these 2 things together create a virtual 'file-system' storage.

Egon
A: 

To add on to what Egon said, simply create your blob called "folder/1.txt", and it will work. No need to create a directory.

smarx