Create folder into containers

Aug 5, 2009 at 7:34 PM
Edited Aug 5, 2009 at 10: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');


Aug 6, 2009 at 5: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...