I am using Azure Data Lake Gen2 as my storage. I need to create different folder structure before uploading the files to relevant folders.
I am using "Azure-Storage" javascript library. But I am not able to figure out how to create a folder inside a container through this library.
Below is the code to connect to container. I am able to connect to container and upload a file into container itself.
var azure = require('azure-storage'); //connecting to container
var blobService = azure.createBlobService("DefaultEndpointsProtocol=<>;EndpointSuffix=core.windows.net");
blobService.createContainerIfNotExists("pbitestdl2",{publicAccessLevel: 'blob'},(error, result, response) => {
if (!error) {
console.log('connected');
}
});