RPAFile Management
Reading folders in directories
Reading folders in directories
Lists all the subfolder names inside a specified directory. Useful for mapping the folder structure or processing each subdirectory separately.
Options
Folder path
Enter the full path of the directory whose subfolders will be listed. Example: C:\Desktop\Projects.
Recursive reading?
Defines whether the action must also list the subfolders inside the subfolders. The options are:
- Yes: Lists every subfolder at every level of the directory.
- No: Lists only the direct subfolders of the root directory specified (default).
Return folders full path?
Defines whether the return must contain the full path of each folder or only the name. The options are:
- Yes: Returns the full path (e.g.
C:\Desktop\Projects\Folder1). - No: Returns only the folder name (e.g.
Folder1) (default).
Returns
Javascript code
js
actions["action-id"].values // list of folders (List)
actions["action-id"].count // number of folders (Number)
Field selection
- values — list of folders (List)
- count — number of folders (Number)
Rules and Conditions
- The Folder path field is required.
- The directory indicated must exist and be accessible by the robot.
- If there are no subfolders, the list returned is empty and the count is zero.