Skip to content

GetDir2

Lists a directory from remote environment with additional info.

1
myFiles.GetDir2(options: FileTransferOptions):Array<RemoveFileInfo>

Parameters

FileTransferOptions options
    of transfer

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.

RemoveFileInfo

Information about a file that is removed.

IsDirectory : boolean
A value indicating whether the file is a directory.

Name : string
The name of the file.