mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-04-28 13:17:58 +03:00
[OTRGui] Fix dirscan behaviour
This commit is contained in:
parent
8d53e09269
commit
4135e3c936
1 changed files with 6 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue