Lua Love2D - How can I make it download a file?
snippet in lua

Lua Love2D - How can I make it download a file?

user9653

if not love.filesystem.exists("expo.png") then
  local http = require("socket.http")
  local b, c, h = http.request("http://love2d.org/w/images/e/e3/Resource-AnalExplosion.png")
  love.filesystem.write("expo.png", b)
end