1
0
Fork 0

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

This commit is contained in:
mfranz 2009-02-15 20:49:16 +00:00
parent e32cdecf37
commit 719c2f4610

View file

@ -155,7 +155,7 @@ var list_routes = func { #load preprogrammed tasks
routes = [];
var path = getprop("/sim/fg-home") ~ "/Routes";
var s = io.stat(path);
if (s != nil and io.isdir(s[2])) {
if (s != nil and s[11] == "dir") {
foreach (var file; directory(path))
if (file[0] != 46) append(routes, file);
# size(routes) != 0 or return;