diff options
Diffstat (limited to 'src/ftp.lua')
| -rw-r--r-- | src/ftp.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ftp.lua b/src/ftp.lua index f3b8a5e..3868158 100644 --- a/src/ftp.lua +++ b/src/ftp.lua | |||
| @@ -176,7 +176,7 @@ end | |||
| 176 | -- High level FTP API | 176 | -- High level FTP API |
| 177 | ----------------------------------------------------------------------------- | 177 | ----------------------------------------------------------------------------- |
| 178 | local function tput(putt) | 178 | local function tput(putt) |
| 179 | local con = ftp.open(putt.host, putt.port) | 179 | local con = open(putt.host, putt.port) |
| 180 | con:greet() | 180 | con:greet() |
| 181 | con:login(putt.user, putt.password) | 181 | con:login(putt.user, putt.password) |
| 182 | if putt.type then con:type(putt.type) end | 182 | if putt.type then con:type(putt.type) end |
| @@ -216,7 +216,7 @@ put = socket.protect(function(putt, body) | |||
| 216 | end) | 216 | end) |
| 217 | 217 | ||
| 218 | local function tget(gett) | 218 | local function tget(gett) |
| 219 | local con = ftp.open(gett.host, gett.port) | 219 | local con = open(gett.host, gett.port) |
| 220 | con:greet() | 220 | con:greet() |
| 221 | con:login(gett.user, gett.password) | 221 | con:login(gett.user, gett.password) |
| 222 | if gett.type then con:type(gett.type) end | 222 | if gett.type then con:type(gett.type) end |
