Skip to content

GetDir

Lists the contents of a directory from a remote environment.

1
myFiles.GetDir(options: FileTransferOptions):Array<string>

Parameters

FileTransferOptions options
    The transfer options.

Returns

An array of strings representing the file names in the directory.

Types

FileTransferOptions

Options for file transfer operations.

Password : string
The password to authenticate with on the remote environment. Optional.

Port : number
The port number of the remote environment. Optional.

Protocol : ( "FTP" | "FTPS" | "SFTP" | "HTTP" | "HTTPS" )
The protocol to use for file transfer. Optional. The default is

RemoteHost : string
The IP address or host name of the remote environment.

RemotePath : string
The path of the file on the remote environment.

UserName : string
The username to authenticate with on the remote environment. Optional.