replace deprecated io.isdir(stat[2]) by stat[11] == "dir"
This commit is contained in:
parent
fed30b2f05
commit
e32cdecf37
1 changed files with 1 additions and 1 deletions
|
@ -205,7 +205,7 @@ var scan_models = func(base) {
|
|||
continue;
|
||||
if ((var stat = io.stat(root ~ "/" ~ base ~ "/" ~ d)) == nil)
|
||||
continue;
|
||||
if (io.isdir(stat[2])) {
|
||||
if (stat[11] == "dir") {
|
||||
foreach (var s; scan_models(base ~ "/" ~ d))
|
||||
append(result, s);
|
||||
continue;
|
||||
|
|
Loading…
Add table
Reference in a new issue