Fine tuning the "require" business.

This commit is contained in:
Diego Nehab 2004-05-30 21:36:22 +00:00
parent c23240726e
commit 5ca1049ab4
17 changed files with 133 additions and 116 deletions

View file

@ -106,7 +106,10 @@ function getbyftp(url, file)
-- only print feedback if output is not stdout
-- and we don't know how big the file is
if file then save = ltn12.sink.chain(stats(), save) end
local ret, err = socket.ftp.get {url = url, sink = save, type = "i"}
local gett = socket.url.parse(url)
gett.sink = save
gett.type = "i"
local ret, err = socket.ftp.get(gett)
if err then print(err) end
end