local path = "./badges/" local badges = io.popen("dir "..path) if badges then for i in string.gmatch(badges:read("*a"), "(.-)\n") do io.write("\""..path..i.."\""); end end