List files Version 7 (Net)
Action group: FTP
Description
Get a list of files in a folder
Action icon
Settings of parameters
Property | Description | Type | Filling example | Mandatory field |
Parameters | ||||
Context | FTP session | Robin.FTP | FTP context | Yes |
Server folder | The full or relative path to the new remote directory | Robin.String | Yes | |
Results | ||||
Result | List of filenames in a folder | Robin.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
- Assemble a robot scheme consisting of actions:
- Set the parameters for the Connect action.
- Set the parameters for the "List files" action.
- Set the parameters for the "Disable" action.
- Set the parameters for the "Get value by index" action.
- 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.
Обзор
Инструменты контента