Notifications
Announcements
No record found.
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); }
CloudBlobDirectory cloudBlobDirectory = blobContainer.GetBlobDirectoryReference('Folder1/Folder2'); if (!cloudBlobDirectory) { throw error ("Folder name not found"); }
boolean directoryExists = CloudBlobDirectory.ListBlobs().Count() > 0
var blobs = CloudBlobDirectory.ListBlobs(); boolean directoryExists = blobs.Count() > 0;
using Microsoft.WindowsAzure.Storage; using Microsoft.WindowsAzure.Storage.Auth; using Microsoft.WindowsAzure.Storage.Blob; using Microsoft.WindowsAzure.Storage.File; public void checkFolderName(str _filePath, str _containerName) { CloudBlobContainer blobcontainer; CloudBlobClient blobClient; var credential = new StorageCredentials("StorageAccountName", "StorageAccessKey"); var storageAccount = new CloudStorageAccount(credential, true); blobClient = storageAccount.CreateCloudBlobClient(); blobcontainer = blobClient.GetContainerReference(_containerName); CloudBlobDirectory cloudBlobDirectory = blobContainer.GetBlobDirectoryReference(_filePath); }
var blobs = CloudBlobDirectory.ListBlobs(false, 0, null, null); boolean directoryExists = blobs.Count() > 0;
Using Azure.Storage.Blobs; public void checkFolderName(str _filePath, str _containerName) { BlobContainerClient blobContainerClient; // blobContainerClient.GetBlobs(_filePath); }
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Abhilash Warrier 677 Super User 2025 Season 2
André Arnaud de Cal... 442 Super User 2025 Season 2
Martin Dráb 339 Most Valuable Professional