C ++ file scanning using its own standard libraries

I want to know or learn how to search my own standard libraries in a C ++ catalog or see if this is possible at all.

Currently, I have found several solutions for searching the directory, but they all use some external libraries, such as this SO question:

recursive folder scan in c ++

How should we approach this?

+5
source share
1 answer

There are no file system objects in the C ++ standard. For him, there is a technical specification that may be included in a future version of C ++.

Until then, you will have to use platform-specific functions or the library that wraps them. Apparently, the new proposal is almost the same as the boost API, so I recommend using boost even if its ubiquity was no longer good enough.

+8
source

Source: https://habr.com/ru/post/1201139/


All Articles