How to check if multiple files exist in Azure container

0 votes
I want to check if multiple files exist in Azure container or not. Is there an efficient way to check it other than in foreach loop? Can I do it using LINQ? Is there a better way to do the same?
Mar 4, 2019 in Azure by sabby
• 4,370 points
3,845 views

1 answer to this question.

0 votes

foreach loop is the most efficient way though. But if the number of blobs is small, you could retrieve a list of all blobs and run the loop on that. 

If you do think performance is a concern, you may consider invoking Exists method simultaneously. 

Hope it helped!

If you need to know more about Azure, then you should join Azure training course online today.

Thank you!!

answered Mar 4, 2019 by Prerna
• 1,960 points

Related Questions In Azure

0 votes
1 answer

How to get the list of names of Azure blob files in a container?

We can get some additional info like Size, ...READ MORE

answered Jun 27, 2018 in Azure by club_seesharp
• 3,450 points
21,799 views
0 votes
0 answers

How to create a sub-container in Azure?

How to create a sub-container in Azure ...READ MORE

Jun 28, 2019 in Azure by sabby
• 4,370 points
1,028 views
0 votes
1 answer

How to create a sub-container in Azure?

You can create a container named "content" and ...READ MORE

answered Jun 28, 2019 in Azure by Perry
• 17,100 points

edited Oct 7, 2021 by Sarfaraz 1,953 views
0 votes
1 answer

How to run Azure CLI in a Docker container?

H@akhtar, You can use Docker to run a ...READ MORE

answered Nov 13, 2020 in Azure by MD
• 95,460 points
1,727 views
0 votes
1 answer

Azure has 3 different types of storage accounts. Is there any major difference between them?

Azure Storage provides three types of storage ...READ MORE

answered Mar 4, 2019 in Azure by Prerna
• 1,960 points
26,802 views
0 votes
1 answer

How to install Windows Azure Storage Emulator?

There may be an issue with the ...READ MORE

answered Mar 7, 2019 in Azure by Prerna
• 1,960 points
2,786 views
0 votes
1 answer

Azure Storage Emulator shows error.

Check if you are running BitTorrent/uTorrent or similar ...READ MORE

answered Mar 16, 2019 in Azure by Prerna
• 1,960 points
1,709 views
0 votes
1 answer

Friendly filename when downloading Azure blob.

Azure blobs can be downloaded in four ...READ MORE

answered Mar 16, 2019 in Azure by Prerna
• 1,960 points
3,765 views
0 votes
1 answer

How to pass object messages in Azure Queue Storage?

I already have a base class, so ...READ MORE

answered Mar 26, 2019 in Azure by Prerna
• 1,960 points
3,528 views
0 votes
1 answer

How to create a sub directory in a blob container?

There are two ways:  using the GetDirectoryReference looping through a containers ...READ MORE

answered Mar 26, 2019 in Azure by Prerna
• 1,960 points
12,570 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP