Hello,
I'm trying via filesystem api to list all folder inside a folder ( non recursively ).
The code belove work when you list folder from a normal directory but, doesn't work on folder who are compressed.
std::vector<std::string> NQ::get_folder_list(const std::string& inDir)
{
std::vector<std::string> dirs;
auto dir = Unigine::Dir::create();
if (dir->open(inDir.c_str()))
{
int dirCount = dir->getNumDirs();
for (int i = 0; i < dirCount; i++)
{
auto dirName = std::string(dir->getDirName(i));
dirName.pop_back(); // remove last slash
dirs.push_back(dirName);
}
}
}
Any clue ?
Thanks.