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

PropertyDescriptionTypeFilling exampleMandatory field
Parameters
Start DirectoryThe path to the folder in which to searchRobin.FolderPathC:\doc\imgYes
RecursiveBoolean variable, optional. If the value of the variable is True, then search in subfolders, otherwise only in the specified folderRobin.BooleantrueNo
Match patternMatch pattern for folder nameRobin.String
Yes
Results
ResultList of folders paths that match the patternRobin.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

  1. Move the "Search directories" action to the workspace.


  2. Set the parameters of the "Search directories" action. 


  3. Click on the "Start" button in the top panel. 

Result

The program robot completed successfully. A folder matching the specified conditions is found. 

  • Нет меток