[OTRGui] Fix dirscan behaviour

This commit is contained in:
M4xw 2022-03-22 16:44:01 +01:00
parent 8d53e09269
commit 4135e3c936

View File

@ -148,8 +148,12 @@ namespace MoonUtils {
if(!fs::is_directory(path)) return;
for (auto& p : fs::directory_iterator(path)){
string fpath = p.path().string();
files.push_back(normalize(fpath));
dirscan(fpath, files);
if(fs::is_directory(fpath))
{
dirscan(fpath, files);
} else {
files.push_back(normalize(fpath));
}
}
}