MS has announced directory like blob storage, and I'm trying to use it like directories. Having save some blobs by names:
Common\Service1\Type1\Object1
Common\Service1\Type1\Object2
Common\Service1\Type2\Object1
Common\Service1\Type2\Object2
Common\Service1\Type3\Object1
Common\Service1\Type3\Object2
Common\Service1\Type3\Object3
I'd like to have possibility to enumerate subdirectories, e.g. I have blobclient referenced to Common
container name, and I would like to get subcontainers list Type1, Type2, Type3
. Is it possible to get list of subdirectories in some directory. Using ListBlobs returns full list of blobs within current container.
If you would like to list all "subdirectories" in "Common\Service1" directory you can use something like this:
Full code sample:
This will output Uri for Type1,Type2 and Type3 directory.