Posted 12 June 2016 - 10:26 PM
Look at title!
I have been searching for hours please help
I have been searching for hours please help
function listFolders(directory)
local all = fs.list(directory)
local tab = {}
for i=1,#all do
if fs.isDir( fs.combine(directory, all[i] ) ) then
table.insert(tab, all[i])
end
end
return tab
end
if fs.isDir( fs.combine(directory, all[i] ) ) then
You may need to change a line:if fs.isDir( fs.combine(directory, all[i] ) ) then