1
0
Fork 0

replace deprecated io.isdir(stat[2]) by stat[11] == "dir"

This commit is contained in:
mfranz 2009-02-15 20:41:22 +00:00
parent fed30b2f05
commit e32cdecf37

View file

@ -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;