Skip to main content
Version: v6.5.0

List the contents of a remote folder

Command Description

List all the contents of the specified folder in the file transfer service, namely the list of files and folders

Command Prototype

arrayRet = CommanderFileService.GetFileAndFolderList(sRemotedir)

Command parameter

parametermandatorytypedefault valueInstructions
sRemotedirTruestring""The remote folder path specified in the file transfer service

Return result

ArrayRet, Assign the result of running the command to this variable.

Run instance

/*********************************List Contents of Remote Folder*********************************
Command Prototype:
arrayRet = CommanderFileService.GetFileAndFolderList(sRemotedir)
Input Parameters:
sRemotedir -- Remote folder. Note: The specified remote folder path in the file transfer service.
Output Parameter:
arrayRet -- The variable where the output of the function call will be saved.
Notes:
None
********************************************************************************/
Dim arrayRet = ""
arrayRet = CommanderFileService.GetFileAndFolderList("")
TracePrint(arrayRet)