Skip to main content

List-the-Contents-of-Remote-Directory

Command Description

List all contents of specified directory in the FTP server. That is a list of files and folders

Command Prototype

arrayText = FTP.GetFileAndFolderList(objFTP,sRemotedir)

Parameter Description

ParameterRequiredTypeDefaultDescription
objFTPTrueexpressionobjFTPRefers to the FTP connection object returned by the "connect to FTP server" command
sRemotedirTruestring""Specified remote directory in FTP server

return

arrayText,The variable used to save the output of the command.

Demo