[OTRGui] Fix dirscan behaviour
This commit is contained in:
@@ -148,8 +148,12 @@ namespace MoonUtils {
|
|||||||
if(!fs::is_directory(path)) return;
|
if(!fs::is_directory(path)) return;
|
||||||
for (auto& p : fs::directory_iterator(path)){
|
for (auto& p : fs::directory_iterator(path)){
|
||||||
string fpath = p.path().string();
|
string fpath = p.path().string();
|
||||||
files.push_back(normalize(fpath));
|
if(fs::is_directory(fpath))
|
||||||
dirscan(fpath, files);
|
{
|
||||||
|
dirscan(fpath, files);
|
||||||
|
} else {
|
||||||
|
files.push_back(normalize(fpath));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user