local ftp = require("socket.ftp")
ftp.TIMEOUT = 600 --设置超时时间
ret = ftp.get("ftp://yangjia:123456@192.168.31.245:26187/石器时代M_0.63.0.ipa;type=i")
if ret then
local file = io.open("/var/touchelf/scripts/石器时代M_0.63.0.ipa","w")
file:write(ret)
file:close()
else
notifyMessage("失败")
end
默认端口多少