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

PropertyDescriptionTypeFilling exampleMandatory field
Parameters
FilePath to the file to which the action will be applied.Robin.FilePath
Yes
Results
ResultPath to the parent folder of the file.Robin.FolderPathC:\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

  1. Move the "Get parent folder" action to the workspace.


  2. Set the "Get parent folder" action parameter.


  3. 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. 

  • Нет меток