Page 1 of 1

Lua Script to move all files from a folder to a SFTP server

Posted: Thu May 17, 2018 1:58 pm
by MCR1987
Hi,

I'm looking for a script that will allow my Wing FTP task to move all files from a single network folder to a folder on my SFTP-server. Does anyone have an example for me?

The task would run every 10 minutes and should move (not copy) the files.

Thank you in advance.

Re: Lua Script to move all files from a folder to a SFTP ser

Posted: Fri May 18, 2018 2:26 am
by FTP
You can use such Lua function:

os.rename("OldFilePath", "NewFilePath")