Search directories Version 9 (Python)
Action group: File system
Description
Search for a folder in the system using the pattern for its name
Action icon
Settings of parameters
Property | Description | Type | Filling example | Mandatory field |
Parameters | ||||
Start Directory | The path to the folder in which to search | Robin.FolderPath | C:\doc\img | Yes |
Recursive | Boolean variable, optional. If the value of the variable is True, then search in subfolders, otherwise only in the specified folder | Robin.Boolean | true | No |
Match pattern | Match pattern for folder name | Robin.String | Yes | |
Results | ||||
Result | List of folders paths that match the pattern | Robin.Collection |
Special conditions of use
None.
Example of use
Task
There is a folder RPA. You need to get a collection of paths to folders subfolders in the RPA folder whose names start with the letter V.
Solution
Use the "Search directories" action.
Implementation
- Move the "Search directories" action to the workspace.
- Set the parameters of the "Search directories" action.
- Click on the "Start" button in the top panel.
Result
The program robot completed successfully. A folder matching the specified conditions is found.
Обзор
Инструменты контента