sftp.Connection
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 |
|
Methods and Properties |
|
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