File is read only Version 7 (Python)

Action group: FIle system


Description

This action is used to check if the file has a read only sign.

Action icon


Settings of parameters

PropertyDescriptionTypeFilling exampleMandatory field
Parameters
FilePath to the file to which the action will be applied.Robin.FilePath
Yes
Results
ResultA Boolean variable whose value is True if the file has the Read-Only attribute set, and False if this attribute is not set.Robin.Booleantrue

Special conditions of use 

None.

Example of use

Task

Check the "Read only" sign for the "Log" file, the path to which is written in the "Path to file" variable.

Solution

Use the "File is read only" action. 

Implementation

  1. Move the "File is read only" action to the workspace.


  2. Set the "File is read only" action parameter. 


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

Result

The program robot completed successfully.

The file does not have a "Read only" sign. 

  • Нет меток