Using the new FTP feature on MODLR

Joined
Dec 4, 2019
Messages
4
Likes
7
Points
3
#1
Hi Everyone,

On MODLR, you can now interact with an FTP server using the new FTP process functions. The FTP feature is available starting with Build 2.4.524.

To get started, you first need to establish an FTP connection using the FTP function ftp.Connect():

JavaScript:
const client = ftp.Connect("sftp", "example.domain.com", 22, "johndoe", "mypassword");
This creates an FTPClient object which you can use interact with the FTP server. To test that a connection has been established, use IsConnected() method.

JavaScript:
if (client.IsConnected()) {
    console.log('YAY! We good.');
    // Start doing some awesome stuff with your newfound talents...
} else {
    console.log(':(');
}
Here is an example process code demonstrating what you can do.

To learn more about the new FTP functions, head over to the MODLR Docs.
 
Last edited:

Ben Hill

Administrator
Staff member
Administrator
Joined
Mar 19, 2018
Messages
37
Likes
29
Points
18
#2
Thanks for the write-up and documentation Wayne.