diff options
| author | Diego Nehab <diego@tecgraf.puc-rio.br> | 2004-06-17 21:46:22 +0000 |
|---|---|---|
| committer | Diego Nehab <diego@tecgraf.puc-rio.br> | 2004-06-17 21:46:22 +0000 |
| commit | 597a062b1bc38488df1363995eece8a9f19c7111 (patch) | |
| tree | ba4ccaa8be98d1100aed63abb9c42c099f2c41bb /src/ftp.lua | |
| parent | eac26d2c8dafab604ef2e97e504326cfaf1033cf (diff) | |
| download | luasocket-597a062b1bc38488df1363995eece8a9f19c7111.tar.gz luasocket-597a062b1bc38488df1363995eece8a9f19c7111.tar.bz2 luasocket-597a062b1bc38488df1363995eece8a9f19c7111.zip | |
Almost ready for distribution...
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 |
