1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2024-09-28 15:08:47 +00:00

Fix Bug in list.lua

list.lua check now, if sDir is a Directory
This commit is contained in:
Wilma456 (Jakob0815) 2017-08-11 13:42:20 +02:00 committed by GitHub
parent 579f7443a8
commit 3371345fad

View File

@ -7,6 +7,11 @@ if tArgs[1] ~= nil then
sDir = shell.resolve( tArgs[1] )
end
if not fs.isDir( sDir ) then
printError( "Not a directory" )
return
end
-- Sort into dirs/files, and calculate column count
local tAll = fs.list( sDir )
local tFiles = {}