#include #include #include namespace fs = std::filesystem; int main() { std::string path = "."; for (const auto & entry : fs::directory_iterator(path)) std::cout << entry.path() << std::endl; }