List files Version 7 (Net)

Action group: FTP


Description

Get a list of files in a folder

Action icon

Settings of parameters

PropertyDescriptionTypeFilling exampleMandatory field
Parameters
ContextFTP sessionRobin.FTPFTP contextYes
Server folderThe full or relative path to the new remote directoryRobin.String
Yes
Results
ResultList of filenames in a folderRobin.Collection

Special conditions of use

None.

Example of use

Task

Connect to the FTP server, get the list of files of the "upload" directory, disconnect the connection and get the value from the collection of received items by index "0". 

Solution

Use the actions "Connect", "List files", "Disconnect", "Get value by index". 

Implementation

  1. Assemble a robot scheme consisting of actions:
  2. Set the parameters for the Connect action. 
    image2024-1-23_16-12-15.png
  3. Set the parameters for the "List files" action. 
  4. Set the parameters for the "Disable" action. 
    image2024-1-23_16-14-30.png
  5. Set the parameters for the "Get value by index" action.
  6. Click on the "Start" button in the top panel. 

Result

The program robot completed successfully. There is one file in this directory 

  

Information on the value with index =0 is obtained. 

  • Нет меток