Using the new FTP feature on MODLR

Wayne Duran

Moderator
Staff member
Joined
Dec 4, 2019
Messages
3
Likes
5
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: