Browse Source

[OTRGui] Fix dirscan behaviour

pull/11/head
M4xw 7 months ago
parent
commit
4135e3c936
  1. 8
      OTRGui/src/utils/mutils.cpp

8
OTRGui/src/utils/mutils.cpp

@ -148,8 +148,12 @@ namespace MoonUtils { @@ -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));
}
}
}

Loading…
Cancel
Save