Click here to Skip to main content
15,867,453 members
Articles / Programming Languages / C#

Batch Processing with Directory.EnumerateFiles

Rate me:
Please Sign up or sign in to vote.
5.00/5 (10 votes)
12 Aug 2023CPOL3 min read 10.7K   16  
Batching is a nice technique that allows you to handle big amounts of data gracefully. Directory.EnumerateFiles is the API that allows you to organize batch processing for the directory with a large number of files.
In case one wants to retrieve files from catalog, `Directory.GetFiles` is a simple answer sufficient for most scenarios. However, when you deal with a large amount of data, you might need more advanced techniques. Directory.EnumerateFiles is the API that allows you to organize batch processing for the directory with a large number of files.

Views

Daily Counts

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Team Leader
Ukraine Ukraine
Team leader with 8 years of experience in the industry. Applying interest to a various range of topics such as .NET, Go, Typescript and software architecture.

Comments and Discussions