mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2025-01-19 05:32:55 +00:00
Ignore dirs inside startup directories
This commit is contained in:
parent
259fe4b6b4
commit
eb9b7f3b8c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user