sftp.Sort

Note:

The content in this help topic pertains to SuiteScript 2.0.

Note:

JavaScript does not include an enumeration type. The SuiteScript 2.0 documentation uses the term enumeration (or enum) to describe a plain JavaScript object with a flat, map-like structure. In this object, each key points to a read-only string value.

Enum Description

Holds the values to be used to sort the listed directory.

Type

enum

Module

N/sftp Module

Sibling Module Members

N/sftp Module Members

Since

2019.2

Values

Value

DATE

DATE_DESC

SIZE

SIZE_DESC

NAME

NAME_DESC

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 connection = sftp.createConnection({
    username: 'sftpuser',
    keyId: 'custkey1',
    url: '192.168.0.100',
    port: 22,
    directory: 'inbound',
    hostKey: "AAAAB3NzaC1yc2EAAAADAQABAAABAQDMifKH2vTxdiype8nem7+lS3x7dTQR/A67KdsR/5C2WUcDipBzYhHbnG6Am12Nd2tlM01LnaBZA6/8P4Y9x/sGTxtsdE/MzeGDUBn6HBlQvgIrhX62wgoKGQ+P2lEAO1+Vz8y3/MB1NmD7Fc62cJ9Mu88YA6jwJOIPZeHYNVyIm9OrY6VyzYyvSJhH0x7SXyvGnijJQF4G8C4c8u/UVpF/sE16xKZtly2Rx0aDL2FsDRtpyPmM602/R6ISbsmgab3MzzAEIu+zLDMdIBJn3cDhNt1F7Rar6Tu0u18KCkk8GPxbnxDuG4sCNOnXPYkDXSMUbM/ocRjYGtqdZUMmeTf3"
 });

connection.list({
    path:"?path*", 
    sort: sftp.Sort.SIZE
});
...
//Add additional code 

          

Related Topics

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

General Notices