Click here to Skip to main content
15,066,289 members
Articles / Programming Languages / C#

Stats

3.2K views
9 bookmarked

Batch Processing with Directory.EnumerateFiles

Rate me:
Please Sign up or sign in to vote.
5.00/5 (5 votes)
28 Mar 2021CPOL3 min read
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

License

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

Share

About the Author

Bohdan Stupak
Software Developer
Ukraine Ukraine
https://twitter.com/BohdanStupak1

Comments and Discussions