I am using Azure Datastorage Gen2 and I have came across problem that I cannot create virtual directory when Hierarchical namespace option is enabled.
If I try to do this
const std::string blobContent= "";
auto blockBlobClient= std::make_shared<Azure::Storage::Blobs::BlockBlobClient>(m_container->GetBlobClient(blobName).AsBlockBlobClient());
std::vector<uint8_t> buffer(blobContent.begin(), blobContent.end());
blockBlobClient->UploadFrom(buffer.data(), buffer.size());
Azure::Storage::Metadata blobMetadata= {{"hdi_isfolder", "true"}};
blockBlobClient->SetMetadata(blobMetadata);```
I am getting error *Error: 400 One of the HTTP headers specified in the request is not supported.
*
But isn't that a way how to create a virtual directory?
Can someone please explain me what am I doing wrong?
Thanks!
I have tried to create virtual directory in ADLS Gen2 blob storage
I got Error: 400 One of the HTTP headers specified in the request is not supported
I expected folder to be created without any problems
New contributor
Staša Sekulić is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.