30.03.2022, 07:33
Similar to how HTTP requests are done:
Code:
ftp = require('socket.ftp')
data, err = ftp.get('ftp://user:password@host/path')
if data then
log('ftp data', data)
else
log('ftp error', err)
end