13.08.2020, 11:12
The example script writes to /tmp/, which cannot be accessed via FTP. /home/ftp/ is the absolute path for writing from scripts. If you access FTP using ftp user then any file placed into /home/ftp/ will be visible in the base directory.
Code:
result, err = io.writefile('/home/ftp/' .. logfile, table.concat(buffer, '\r\n'))