Hi Team,
Inside the azure blob container name i am having multiple folders, like below.
ContinerName/Folder1/Folder2
In case of any folder is missing i would like to show some error message.
In above if Folder2 is missing show error like folder is not present.
Below is the code which i am using.
using Microsoft.WindowsAzure.Storage;
using Microsoft.WindowsAzure.Storage.Auth;
using Microsoft.WindowsAzure.Storage.Blob;
using Microsoft.WindowsAzure.Storage.File;
public void checkFolderName(str _filePath)
{
CloudBlobContainer blobcontainer;
CloudBlobClient blobClient;
var credential = new StorageCredentials("StorageAccountName", "StorageAccessKey");
var storageAccount = new CloudStorageAccount(credential, true);
blobClient = storageAccount.CreateCloudBlobClient();
blobcontainer = blobClient.GetContainerReference(_filePath);
}
Please let me know how to achieve this.