I am currently in the process of learning the Boost framework, and I have found out how to list all folders and files on my system, using
#include
The .NET version might be indexed and perhaps only needs to read filenames from a flat format. What you propose needs to open every single directory.