libs/yocto/yocto_commonio.cpp
// List the contents of a directory
List the contents of a directory
List the contents of a directory
vector<string> list_directory(const string& filename) {
  auto entries = vector<string>{};
  for (auto entry : std::filesystem::directory_iterator(make_path(filename))) {
    entries.push_back(entry.path().generic_u8string());
  }
  return entries;
}
vector < string > list_directory ( const string & filename ) { auto entries = vector < string > { } ; for ( auto entry : std :: filesystem :: directory_iterator ( make_path ( filename ) ) ) { entries . push_back ( entry . path ( ) . generic_u8string ( ) ) ; } return entries ; }
List the contents of a directory
List the contents of a directory