replace deprecated io.isdir(stat[2]) by stat[11] == "dir"
This commit is contained in:
parent
e32cdecf37
commit
719c2f4610
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue