sftp.Connection

Note:

The content in this help topic pertains to SuiteScript 2.0.

Object Description

Represents a connection to the account on the remote FTP server.

Supported Script Types

Server scripts

For more information, see SuiteScript 2.x Script Types.

Module

N/sftp Module

Methods and Properties

Connection Object Members

Since

2016.2

Syntax
Important:

The following code sample shows the syntax for this member. It is not a functional example. For a complete script example, see N/sftp Module Script Samples.

          //Add additional code 
...

var objConnection = sftp.createConnection({    //establish connection to the FTP server
    username: 'username',
    keyId: 'custkey1',
    url: 'host.somewhere.com',
    directory: 'username/wheres/my/file'
    hostKey: myHostKey
});
...
//Add additional code 

        

Related Topics

N/sftp Module
SuiteScript 2.x Modules
SuiteScript 2.x

General Notices