Get parent folder Version 7 (Python)
Action group: File system
Description
Gets the path to the parent folder of the file.
Action icon
Settings of parameters
Property | Description | Type | Filling example | Mandatory field |
Parameters | ||||
File | Path to the file to which the action will be applied. | Robin.FilePath | Yes | |
Results | ||||
Result | Path to the parent folder of the file. | Robin.FolderPath | C:\doc\img |
Special conditions of use
None.
Example of use
Task
Get the path to the parent folder of the "Logs.txt" file.
Solution
Use the "Get parent folder" action.
Implementation
- Move the "Get parent folder" action to the workspace.
- Set the "Get parent folder" action parameter.
- Click on the "Start" button in the top panel.
Result
The program robot completed successfully. The path to the parent folder of the file is obtained.
Обзор
Инструменты контента