Ignore dirs inside startup directories

This commit is contained in:
Lignum 2017-05-16 21:50:35 +02:00
parent 259fe4b6b4
commit eb9b7f3b8c
No known key found for this signature in database
GPG Key ID: E4DE8F54CA0912BA
1 changed files with 4 additions and 1 deletions

View File

@ -223,7 +223,10 @@ local function findStartups( sBaseDir )
tStartups = {}
end
for _,v in pairs( fs.list( sBasePath ) ) do
tStartups[ #tStartups + 1 ] = "/" .. fs.combine( sBasePath, v )
local sPath = "/" .. fs.combine( sBasePath, v )
if not fs.isDir( sPath ) then
tStartups[ #tStartups + 1 ] = sPath
end
end
end
return tStartups