Create folder into containers

Aug 5, 2009 at 8:34 PM
Edited Aug 5, 2009 at 11:07 PM

Hi all,

Is possible create folders (placeholders) into blobs containers using the SDK?

My workaround is use putBlob method with an empty text file:

$storageClient->putBlob('albums', 'folder1/folder2/folder3/empty.txt', 'empty.txt');

Thanks.

Coordinator
Aug 6, 2009 at 6:49 AM

There is no such concept as "folders" on blob storage. There's only containers, which are root level logical separators of your path. Blob storage does support working with separators (like /) to mimic some sort of folder structure. Unfortunately, you will always have to upload a file to achieve this. Your workaround is the only way to achieve folder placeholders...