Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/moteus/lua-ftp
Simple wrapper around LuaSocket ftp
https://github.com/moteus/lua-ftp
Last synced: 28 days ago
JSON representation
Simple wrapper around LuaSocket ftp
- Host: GitHub
- URL: https://github.com/moteus/lua-ftp
- Owner: moteus
- License: mit
- Created: 2014-08-13T13:03:56.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-09-09T08:36:38.000Z (about 10 years ago)
- Last Synced: 2024-10-05T06:41:09.427Z (about 1 month ago)
- Language: Lua
- Homepage:
- Size: 141 KB
- Stars: 6
- Watchers: 1
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
lua-ftp
============
[![Licence](http://img.shields.io/badge/Licence-MIT-brightgreen.svg)](LICENCE.txt)Simple wrapper around LuaSocket ftp.
##Usage
```Lua
local ftp = require "ftp"local f = ftp.new{
host = '127.0.0.1',
uid = 'moteus',
pwd = '12345',
}assert(f:noop())
for _, info in ipairs(f:list()) do print(info) end
f:cd('some/sub/dir')
-- upload data
f:put_data('test.txt', 'this is test message')-- download file
f:get_file('test.txt', './local/path/test.txt')```
##Dependences##
* [LuaSocket](http://www.impa.br/~diego/software/luasocket)
* [lua-path](https://github.com/moteus/lua-path)